cancel
Showing results for 
Search instead for 
Did you mean: 

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
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