[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cannot resolve self



On Thu, 2003-04-24 at 19:56, Matt P. wrote:
> Just installed a woody system, and I have some issues with resolving.
> 
> * /etc/host.conf is unchanged:
> ------------------------------
> order hosts,bind
> multi on
> 
> * /etc/hosts is slightly modified:
> ----------------------------------
> 127.0.0.1 localhost
> 999.999.999.999 myname.mydomain.myext
> 
999.999.999.999 is an invalid IP.
Try 192.168.1.1

> * /etc/nsswitch.conf has a line:
> --------------------------------
> hosts:	files, nisplus, dns
> (same result with just 'files, dns')
> 
> * /etc/resolv.conf:
> -------------------
> 
> domain mydomain.myext (same as in /etc/hosts)
> search mydomain.myext ( "					" )
> nameserver 666.666.666.666
> 
> 
> ===> Symptom:
> On machine myname, I type
> $> host localhost
> localhost.mydomain.myext A 127.0.0.1   ( -> :-) )
> $> host myhost
> myhost.mydomain.myext does not exist (authoritative answer)
> 
> If I strace this last command, it doesn't show any sign of opening
> /etc/host.conf (and /etc/hosts for that matter), but rather runs to the
> dns which doesn't contain a reference to myhost.mydomain.myext
> 
> How can I force the resolver to peek into /etc/hosts ?
> 
> Thx
> 
> Matt
-- 

Jon Wood

jon@jellybob.co.uk
www.godaintpants.co.uk/users/Jellybob



Reply to: