On Sat, Nov 17, 2007 at 07:48:50PM +0100, Henning Brauer wrote:

> * Toni Mueller <[EMAIL PROTECTED]> [2007-11-17 19:38]:
> > Hi,
> > 
> > On Fri, 16.11.2007 at 16:25:40 +0100, Henning Brauer <[EMAIL PROTECTED]> 
> > wrote:
> > > * Toni Mueller <[EMAIL PROTECTED]> [2007-11-16 12:39]:
> > > > I've removed the '-s' flag for this reason, although I would very much
> > > > prefer to have it in place in the case that I have net access. I don't
> > > > know whether it would be feasible for ntpd to see whether there's an
> > > > appropriate route, and whether the relevant interfaces are up.
> > > 
> > > the problem is the dns lookup that blocks the parent process.
> > > i have an idea how to solve that, but as usual, short of time.
> > 
> > how long would a DNS timeout take?
> 
> varies. can take ages.

There's some exponentional backoff, which quickly gets very large.
Especially if there are a few hosts in /etc/resolv.conf. Try putting a
few IPs that do not run a name server there; if you compile libc with
DEBUG and enable RES_DEBUG (see resolver(3)) you will be surprised. 

But the case (no network iterface available at all) solved by my diff
is different. 

        -Otto

Reply via email to