Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

make nslookup read /etc/hosts file

user3715462Jun 21 2010 — edited Jul 1 2010
Dear,


OS: OUL5x64

my nslookup resolve the name thru dns server.
question :
how to make nslookup resolves name through /etc/hosts file.
i do have /etc/resolv.conf and /etc/nsswitch.conf file

here is my nsswitch.conf
/etc/nsswitch.conf
#hosts: db files nisplus nis dns
hosts: files

but it never uses the file to resolve the name.

how can i force it to read /etc/hosts file first

Thanks in advance!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 29 2010
Added on Jun 21 2010
5 comments
15,130 views