"Gary Hennigan" <[EMAIL PROTECTED]> writes:
> I just spent a couple of hours diagnosing a DNS lookup problem, but I
> have no clue what's causing the problem. If I do a
>
>       host junker.whatever.gov
>
> it's trying to do a lookup over the loopback interface. This times out
> eventually. If I do a
>
>       host junker.whatever.gov 134.xxx.xxx.xxx
>
> where 134.xxx.xxx.xxx is our local DNS server everything works
> fine. The request goes out over the eth0 interface and immediately
> returns a valid IP for the given name.
>
> Does anyone know why it's trying to send the request over the loopback
> interface if I don't specify the IP address of a DNS server?
> /etc/resolv.conf looks fine, it has a "domain whatever.gov" line and
> then our two primary DNS servers. Looking at strace output of
> "host junker.whatever.gov" it seems to be reading /etc/resolv.conf 
>
> Every other network transaction works fine as long as I specify an IP
> address, including routing correctly. I'm stumped!!

Well, it never fails to amaze me how I can stare at something for an
hour and not see the obvious. In /etc/resolv.conf "nameserver" was
misspelled "nameservr". I looked at that file dozens of times and only
when I did a diff of the /etc directory with that of a working system
did the problem slap me in the face. Man I'm a dumbass sometimes!

Sorry for the waste of space on the mailing list.

Gary


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to