nslookup not using /etc/hosts

Ben Ricker yellowdog-general@lists.terrasoftsolutions.com
Mon Sep 29 10:24:01 2003


Nslookup will never check the resolv.conf. It is meant to resolve from=20=

the DNS server noted in resolver.conf.

If you want to check entries in the hosts file, telnet to the machine=20
name listed in /etc/hosts. I assume the hosts added to /etc/hosts are=20
NOT in DNS. if they are, then you are confused about the need for=20
/etc/hosts; it is for non-DNS ip/host mappings.

Ben Ricker



On Monday, September 29, 2003, at 10:59 AM, Farrelly, Stefan wrote:

> Hi,
>
> =A0
>
> Ive just installed Yellowdog Linux v3.0 on my G4 and I cant get=20
> nslookup (or host or dig) to check the /etc/hosts file for entries I=20=

> have there, despite /etc/nsswitch.conf having hosts set to files then=20=

> dns. Ive not changed any permissions or anything, and my entries to=20
> /etc/hosts are correct.
>
> =A0
>
> Anyone got any ideas why its not using /etc/hosts ?
>
> =A0
>
> Thanks,
>
> =A0
>
> Stefan
>
> =A0
>
>
>
>
>
> This E-mail is from IPC Media Ltd whose registered office is at Kings
> Reach Tower, Stamford Street, London SE1 9LS, registered number 53626.
> The contents and any attachments to it include information that is=20
> private and confidential
> and should only be read by those persons to whom they are addressed.=20=

> IPC Media accepts no
> liability for any loss or damage suffered by any person arising from=20=

> the use of this e-mail.
> Neither IPC Media nor the sender accepts any responsibility for=20
> viruses and it is your
> responsibility to check the email and attachments (if any). No=20
> contracts may be
> concluded on behalf of IPC Media by means of e-mail communications. If=20=

> you have received
> this e-mail in error, please destroy and delete the message from your=20=

> computer.
>
>
> For unbeatable savings on magazine subscriptions and great gift ideas=20=

> visit www.ipcsubs.co.uk/IZAF
>