Louis Mandelstam on Fri, 30 Jan 1998 19:59:53 +0200


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

Re: Silly question - hosts file


On Fri, 30 Jan 1998, Graham Leggett wrote:

> Hi all,
> 
> Just a quick silly question - I have a Linux box here which is connected
> to a nameserver inside which the name "localhost" is not defined. For
> some reason, localhost is defined in the hosts file, but this hosts file
> is not being used - "nslookup localhost" returns "host not found".
> 
> My rusty brain recalls a command you add to the resolv.conf file that
> tells the resolver to search the hosts file, then do dns, but I'm not
> sure. Can anyone put me out of my misery, to my shame I am stumped.

I could be way off, but I don't think nslookup talks to the resolver
library.  It talks to named.

Then again, this is 5 minutes after the Friday office party.

-------------------------------------------------------------------------
Louis "automate it" Mandelstam                       Club Internet NDF
email: louism@xxxxxxx      "Problems breed.          Tel: +27-11-402-1678
Mobile: 083-653-2993        Kill the parents."       Fax: +27-11-406-3407
-------------------------------------------------------------------------