Operating System - HP-UX
1834811 Members
2337 Online
110070 Solutions
New Discussion

Re: nslookup only works with root

 
SOLVED
Go to solution
Mark Loy
New Member

nslookup only works with root

I have a N4000 running HPUX 11.0 trusted system. When I use nslookup as root I can resolve any server name on my network. If I use nslookup as any other user I get "can't find 'servername': No respose from server.

Thanx in advance.
4 REPLIES 4
Jeff Schussele
Honored Contributor

Re: nslookup only works with root

Hi Mark,

Few things to check...

1) Do the users have .nslookuprc files in their home dirs?

2) Try using the -swdebug command line option when trying as a user

3) What are the perms on /etc/hosts? Should be 444 & owned by bin:bin

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
John Bolene
Honored Contributor
Solution

Re: nslookup only works with root

Curious

sounds like a permissions problem

I have
/etc/nsswitch.conf 544
/etc/resolv.conf 544

what do you get from

nslookup
set deb
put what to lookup here

cntl-d to quit
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
John Bolene
Honored Contributor

Re: nslookup only works with root

I meant 644 on those files.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Mark Loy
New Member

Re: nslookup only works with root

My resolv.conf had permissions of 500. Changed it and nsswitch to 644 and everything works great.

Thanx for the quick responses!