Summary: nslookup always goes to dns server

From: Rekhi, Manjeet (Manjeet.Rekhi@kellogg.com)
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!
...Manjeet

> -----Original Message-----
> From: Rekhi, Manjeet
> Sent: Tuesday, March 18, 2003 5:23 PM
> To: 'sunmanagers@sunmanagers.org'
> 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
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:01 EDT