public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] dns at startup
@ 2006-04-15 11:46 David Corbin
  2006-04-16  8:02 ` Rohit Sharma
  0 siblings, 1 reply; 4+ messages in thread
From: David Corbin @ 2006-04-15 11:46 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] dns at startup
  2006-04-15 11:46 [gentoo-user] dns at startup David Corbin
@ 2006-04-16  8:02 ` Rohit Sharma
  2006-04-16 11:13   ` David Corbin
  0 siblings, 1 reply; 4+ messages in thread
From: Rohit Sharma @ 2006-04-16  8:02 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] dns at startup
  2006-04-16  8:02 ` Rohit Sharma
@ 2006-04-16 11:13   ` David Corbin
  2006-04-16 11:57     ` Rohit Sharma
  0 siblings, 1 reply; 4+ messages in thread
From: David Corbin @ 2006-04-16 11:13 UTC (permalink / raw
  To: gentoo-user

On Sunday 16 April 2006 04:02 am, Rohit Sharma wrote:
> David Corbin wrote:
<snip>
> 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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] dns at startup
  2006-04-16 11:13   ` David Corbin
@ 2006-04-16 11:57     ` Rohit Sharma
  0 siblings, 0 replies; 4+ messages in thread
From: Rohit Sharma @ 2006-04-16 11:57 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-04-16 12:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-15 11:46 [gentoo-user] dns at startup David Corbin
2006-04-16  8:02 ` Rohit Sharma
2006-04-16 11:13   ` David Corbin
2006-04-16 11:57     ` Rohit Sharma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox