Operating System - HP-UX
1833751 Members
2681 Online
110063 Solutions
New Discussion

Re: nslookup does not read nsswitch.conf

 
SOLVED
Go to solution
Hector Vargas
Frequent Advisor

nslookup does not read nsswitch.conf

Hello HP.

I have 4 machines runing HP-UX-11.ii and when I do nslookup, I get error message:
txsldsa1:/etc # nslookup
*** Can't find server name for address 10.215.156.212: Non-existent domain


however my nsswitch file is configure to first check on files

passwd: files
group: files
hosts: files dns
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files
services: files


Why is nslookup not ready my nsswitch file?
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: nslookup does not read nsswitch.conf

Because your syntax is wrong. The hosts: line should look something like this:

hosts: files [NOTFOUND=continue UNAVAIL=continue] dns

# This is all one line.

I assume that you have correctly configured /etc/resolv.conf.

If it ain't broke, I can fix that.
Yang Qin_1
Honored Contributor

Re: nslookup does not read nsswitch.conf

Your /etc/resolve.conf and /etc/hosts are properly configured?
Bill Hassell
Honored Contributor

Re: nslookup does not read nsswitch.conf

There is a really well-hidden command to describe nsswitch.conf actions - much better than nslookup: nsquery
as in:

nsquery hosts hp.com


Bill Hassell, sysadmin
Hector Vargas
Frequent Advisor

Re: nslookup does not read nsswitch.conf

Thanks Clay,

The correct sintax fix my problem.
Hector Vargas
Frequent Advisor

Re: nslookup does not read nsswitch.conf

Thanks for the help.

I am very happy how quick your support help me solve my problem.