[H-GEN] DNS server configuration query

Christopher Biggs listjunkie at pobox.com
Wed Nov 20 01:40:25 EST 2002


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

Ewan Edwards <Edwards_Ewan_B at cat.com> moved upon the face of the 'Net and spake thusly:

>
> Had already added the search directive to /etc/resolv.conf and it didn't seem 
> to make a difference to dig.  It only seemed to make a difference to 
> nslookup.
>
> James' reply inspired me to look at the man page for resolv.conf and I've now 
> added a domain directive as well, but still no difference.  :-(

You're using the wrong tool.

Adding a "default domain" and/or a "domain search path" is the job of
the local host resolver library, which consults /etc/resolv.conf for
its configuration.   The correct tool for testing resolver
configuration is "host".

You won't get the result you want using "dig", because it bypasses the
local resolver and talks straight to the dns server(s), ignoring most
of the local resolver configuration.

Try:    "host -vRB foobox"

(of course, I may be talking out my arse, but it works for me).

--cjb


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list