Summary: nslookup always goes to dns server

From: Rekhi, Manjeet <>
Date: Tue Mar 18 2003 - 18:51:37 EST
Whoa, what a response ! 

It seems everybody in the world except me knew that "getent" is the right
tool for this. Some of you told me politely; some of you, well  ... ! :-)

Of late, I have been working mostly on HP where order of 'hosts'  *does
matter* in /etc/nsswitch.conf file.

Some of you suggested why I can't put these entries in the DNS. Its because
I am not authoritative for their domain and for some reason, my DNS server
is unable to resolve a particular host. I was thinking if I could put this
host in my /etc/hosts, things would work.

Thanks for your responses. I do appreciate and value them!

>  -----Original Message-----
> From: 	Rekhi, Manjeet  
> Sent:	Tuesday, March 18, 2003 5:23 PM
> To:	''
> Subject:	nslookup always goes to dns server
> Hello Managers,
> I have checked in my solaris 2.6 and solaris 8 servers. My
> /etc/nsswitch.conf file for 'host' entry looks like (for both servers)  -
> hosts:      files [NOTFOUND=continue] dns
> However, when I do nslookup, my local (/etc/hosts) entries are ignored and
> query directly goes to my dns server. I have some local entries that I
> want to make use of without putting them in DNS. How can I achieve this ?
> Thanks
> Manjeet S. Rekhi
sunmanagers mailing list
Received on Tue Mar 18 18:59:20 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:06 EST