Operating System - Linux
1753809 Members
8196 Online
108805 Solutions
New Discussion юеВ

Nslookup and Nsswitch.conf

 
SOLVED
Go to solution
f. halili
Trusted Contributor

Nslookup and Nsswitch.conf

Hello everyone,

At one machone, when root user does nslookup, it uses the /etc/hosts first. When oracle user runs an nslookup it check the dns first. Any thoughts why both are behaving differently.

I have this on my nsswitch.conf
# cat /etc/nsswitch.conf
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns

Thanks,
Derek
derekh
3 REPLIES 3
Matti_Kurkela
Honored Contributor
Solution

Re: Nslookup and Nsswitch.conf

Check the permissions of your /etc/nsswitch.conf file.

If the oracle user cannot read /etc/nsswitch.conf, the nslookup falls back to factory defaults (checking the DNS first).

MK
MK
f. halili
Trusted Contributor

Re: Nslookup and Nsswitch.conf

THANKS
derekh
f. halili
Trusted Contributor

Re: Nslookup and Nsswitch.conf

changing the permissions on nsswitch.conf did the trick. THANKS.
derekh