Bypassing DNS?

Bruce Dawson jbd at codemeta.com
Thu Feb 23 14:39:01 EST 2006


Paul Lussier wrote:
> Neil Schelly <neil at jenandneil.com> writes:
> 
> 
>>That slight hang would be the timeout of the DNS request.
> 
> 
> Yeah, I know what it is, I need a work around for it :)
> 
> 
>>I'm guessing it's about 2 seconds.
> 
> 
> More like 15:
> 
>   # time host foo
>   Nameserver not responding
>   foo.foo.com A record not found, try again
> 
>   real    0m14.996s
>   user    0m0.000s
>   sys     0m0.000s
> 
> 
> 
>> If you want more immediate response, I would suggest running a
>>local instance of BIND as a caching server.  It can even just
>>forward all requests to your primary DNS servers if you'd like.
> 
> snip
> 
>>Would that work?
> 
> 
> Probably not.  This is for an embedded system, for which the desire is
> a little complexity as possible.  Configuring a caching name server
> would a significant layer of complexity for which our support people
> are not qualified to deal with.  Additionally, the configuration of
> the caching server would be a royal pain to build into our
> installation process.

Try swapping the order of hosts and dns in /etc/nsswitch.

Also, have you tried "options timeout:1" in /etc/resolv.conf? (This will
give you a 1 second timeout).

--Bruce



More information about the gnhlug-discuss mailing list