Re: [gentoo-user] dns at startup

2006-04-16 Thread Rohit Sharma
David Corbin wrote:

>>"use dns" probably refers to DNS server [running on your local host - which 
>>is not the case with most of us, as we don't run DNSes of our own]
>>I kind of figured that, but at the same time, why would the various scripts 
>>care where the DNS is being resolved from?
>>
>>
that makes the two of us - really.
If I were you, I would

* Ensure that ntp-client script starts after the networking has been
  set up
*  modify the ntp-client script to ensure that it tests whether a
  DNS is available or not, at first. If it can't find a DNS, it
  should probably wait till it can.

Unfortunately, I am not saying anything you dont already know
Rohit
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dns at startup

2006-04-16 Thread David Corbin
On Sunday 16 April 2006 04:02 am, Rohit Sharma wrote:
> David Corbin wrote:

> I am on home ADSL and I realise that although my resolv.conf is static
> [since their DNS are fixed], I should still run ntp-client _after_ the
> link to DNSes is up [via my USB modem]. I am yet to ensure that this
> script starts after my network config script start. My netconfig script
> is actually hand crafted - since my modem is unsupported  sort of. So I
> had put that script last in the startup order. Hence my problem -
> something similar may be happening at your end.

The machine I'm having the problem with has a permanent network connection, 
with a DHCP address.But as near I can tell, my ethernet script (the 
standard one) has been run some time ago.

> "use dns" probably refers to DNS server [running on your local host -
> which is not the case with most of us, as we don't run DNSes of our own]

I kind of figured that, but at the same time, why would the various scripts 
care where the DNS is being resolved from?

>
> HTH,
> Rohit
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dns at startup

2006-04-16 Thread Rohit Sharma
David Corbin wrote:

>When  I boot my latpop, ntpdate doesn't work.  It fails saying there is a 
>"temporary failure in name resolution" it cannot lookup pool.ntp.org .  
>After my system finishes booting, "/etc/init.d/ntp-client start" works fine.  
>The script is running nearly last from the output, and after a few other 
>'network related' scripts (exim, mysql, lisa), so I don't *think* it's 
>'running too early'.
>
>When I look through the init.d scripts, there are a handful that 'use dns', 
>but no one seems to provide it.  I'm not sure this is the cause, but I'd like 
>to understand why no one provides it. More important though is fixing it so 
>ntpdate works on boot.
>
>  
>
Hi,

I have the same problem here. Temporarily what I did was after the
machine has booted up, I run the ntp-client script by hand as root.
Nothing elegant there.

However, evidently, the script _is_ running to early, definitely earlier
than your network setup.  Once resolv.conf is set up properly and the
nameservers in there are reachable, your error would go away.

I am on home ADSL and I realise that although my resolv.conf is static
[since their DNS are fixed], I should still run ntp-client _after_ the
link to DNSes is up [via my USB modem]. I am yet to ensure that this
script starts after my network config script start. My netconfig script
is actually hand crafted - since my modem is unsupported  sort of. So I
had put that script last in the startup order. Hence my problem -
something similar may be happening at your end.

"use dns" probably refers to DNS server [running on your local host -
which is not the case with most of us, as we don't run DNSes of our own]

HTH,
Rohit
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] dns at startup

2006-04-15 Thread David Corbin
When  I boot my latpop, ntpdate doesn't work.  It fails saying there is a 
"temporary failure in name resolution" it cannot lookup pool.ntp.org .  
After my system finishes booting, "/etc/init.d/ntp-client start" works fine.  
The script is running nearly last from the output, and after a few other 
'network related' scripts (exim, mysql, lisa), so I don't *think* it's 
'running too early'.

When I look through the init.d scripts, there are a handful that 'use dns', 
but no one seems to provide it.  I'm not sure this is the cause, but I'd like 
to understand why no one provides it. More important though is fixing it so 
ntpdate works on boot.

Any pointers welcome.
Thanks.
David
-- 
gentoo-user@gentoo.org mailing list