- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- nslookup is not working
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
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
тАО10-28-2003 04:43 AM
тАО10-28-2003 04:43 AM
When I do nslookup "return" It doesn't give me
the Using /etc/hosts on:
>prompt
my nsswitch.conf file is OK.
hosts: files [NOTFOUND=continue] dns
services: files
protocols: files
networks: files
rpc: files
netgroup: files
Any ideas ??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2003 05:13 AM
тАО10-28-2003 05:13 AM
Re: nslookup is not working
Theserver resolves the names of itself and of the other servers using either DNS server or /etc/hosts , for nslookup to work and if you are using the DNS service the server uses the nsswitch.conf to know in what order the server name can be resolved and also /etc/resolv.conf which should have the entry for the ip adress of the Name server , so the server will look at that server to resolve the name.
For your problem the issue can be either the resolv.conf is not pointing to the coreect server or the Name server itslef is not working . You can rename the /etc/resolv.conf to some test file and then the server will use /etc/hosts to resolve the name , this way you can isolate the problem
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2003 05:18 AM
тАО10-28-2003 05:18 AM
Re: nslookup is not working
I'd also check that you have an up to date bind patch installed on the box.
-Denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2003 05:21 AM
тАО10-28-2003 05:21 AM
Re: nslookup is not working
files
Those are my settings. Your system is not rolling over to dns when /etc/hosts failes. Perhaps the notfound, tryagain and unavail messages would work for you.
hosts: files[notfound=continue unavail=continue tryagain=continue]
dns
If the /etc/resolv.conf isn't pointing to a valid dns server, then the behavior is probably normal. If the dns server is valid it should be checked and the nsswitch change might be warranted.
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
тАО10-28-2003 05:50 AM
тАО10-28-2003 05:50 AM
Solutionnslookup some_host 12.34.56.78
where the IP address is the first DNS server in /etc/resolv.conf. If this seems to hang, then the server is dead or refuses to talk to you. It will take 15-20 seconds to timeout. Then try the next DNS server and if you have one, the third server. If none of your DNS servers are responding (or blocked by your router/gateway) then it will take nslookup almost a minute to finally timeout. It is ALWAYS a good idea to put files first rather than DNS in /e/tc/nsswitch.conf since you'll always resolve your local name instantly. That also verifies that nslookup is working as it should. But when an address is needed that is found only on the DNS server(s), a hang indicates DNS or networking problems. I would also add the UNAVAIL entry as in:
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns
You will also find nsquery much more useful in tracking down hostname lookup issues (nsquery is a fairly new tool for HP-UX).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2003 02:55 AM
тАО10-29-2003 02:55 AM
Re: nslookup is not working
Thanks for your help