- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Nslookup does not work properly
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 04:38 AM
тАО03-16-2010 04:38 AM
Nslookup does not work properly
I am running nslookup from the same server but with the different user accounts on 11.31
Have a look at the different outputs below.
From root user account
#nslookup -swdebug lonunx02
could not open /etc/nsswitch.conf
__nsw_getconfig: NO POLICY FILE
__nsw_getdefault: default hosts lookup policy
Name Server: lonads02.eu.colt
Address: 10.144.18.53
Trying DNS
Name: lonunx02.eu.colt
Address: 10.100.5.248
From Oracle User
$nslookup -swdebug lonunx02
could not open /etc/nsswitch.conf
__nsw_getconfig: NO POLICY FILE
__nsw_getdefault: default hosts lookup policy
Using /etc/hosts on: lonvps07
looking up FILES
*** No address information is available for "lonunx02"
Please share your expert advice on this to fix it.As i expect the nslookup to work same as the one working from the root account.
Thanks
Vivek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 04:44 AM
тАО03-16-2010 04:44 AM
Re: Nslookup does not work properly
nsquery hosts lonunx02
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 04:46 AM
тАО03-16-2010 04:46 AM
Re: Nslookup does not work properly
You're not curious?
ls -l /etc/nsswitch.conf
> Using /etc/hosts [...]
You're not curious?
ls -l /etc/hosts
> [...] i expect the nslookup to work same as
> the one working from the root account.
Then everyone should have read permission on
these files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 05:19 AM
тАО03-16-2010 05:19 AM
Re: Nslookup does not work properly
# chmod 444 /etc/hosts
rgs,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 05:20 AM
тАО03-16-2010 05:20 AM
Re: Nslookup does not work properly
Thanks for helping me on this issue.
The issue was with the /etc/resolv.conf as it was not having right permissions for oracle to read.So i changed the permissions and then it worked.As in the 11.31 nsswitch is not present by default.
Thanks
Vivek Bhatia
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 05:21 AM
тАО03-16-2010 05:21 AM
Re: Nslookup does not work properly
When a system is installed there are several candidate /etc/nsswitch files.
There is not an /etc/nsswitch.conf file in production.
The systems administrator needs to create nsswitch.conf, which usually involves copying one of the candidate files to become nsswitch.conf
After that, you will with an /etc/resolv.conf file have some chance of nsslookup working.
Both configuration files have man pages to help you get them configured.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 05:23 AM
тАО03-16-2010 05:23 AM