- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- nslookup fails to search all DNS servers
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
Forums
Discussions
Discussions
Discussions
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
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
02-06-2004 04:56 AM
02-06-2004 04:56 AM
nslookup fails to search all DNS servers
I've tried multi variations and can't seem to get ping or nslookup to work against hosts in a second domain. Doing a nslookup host server works but not nslookup host. If fails say not found in the first DNS server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2004 04:59 AM
02-06-2004 04:59 AM
Re: nslookup fails to search all DNS servers
Do you have multiple DNS servers listed in your recolv.conf? How is your nsswitch.conf?
JP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2004 05:02 AM
02-06-2004 05:02 AM
Re: nslookup fails to search all DNS servers
The standard recommended HP setup will not try the secondary server in /etc/resolv.conf unless the primary is unreachable.
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
02-06-2004 05:36 AM
02-06-2004 05:36 AM
Re: nslookup fails to search all DNS servers
my nisswitch.conf file has
hosts - files dns
resolve.conf has
search dom1 dom2
nameserver DNS IP of dom1
nameserver DNS IP of dom2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2004 07:43 AM
02-06-2004 07:43 AM
Re: nslookup fails to search all DNS servers
With regard to DNS lookups only and resolv.conf, each server in turn is checked until one responds, no further checking is done. If you maintain a private internal DNS server and consult the external first, no internal names would be found so long as the external server was up, unless you use an NIS trick.
You mention that you use NIS. Assuming you have a NIS host map, you are not referencing it in you nsswitch.conf file, hence NIS is never consulted. Since NIS has the capabilty to use DNS in its lookups befor it returns a result, you could consult NIS using DNS for internal names and later DNS using the external server and get a combined view.
Another problem I see is thatyour resolve.conf specifies no actions to take pending on the status of a particular service lookup. There are defaults that come with the libraries some tools are compiled with but not all. That means you can get lookup failures with one tool and not others. It is documented in the nsswitch.conf man page but you might try a line like:
host: hosts [ NOTFOUND=continue ] dns [ NOTFOUND = continue ] nis
A couple of other notes. The resolver libraries that most apps use are not used by nslookup, so this is not the best testing utility. HP also provides nsquery which does use the resolver libraries. Also, one thing important to HP is that forward and reverse lookups match, so much so that the resolver will do a forward and reverse lookup even if you only ask for a forward lookup. Having these not match will cause a lot of problems and it is one of the first things I look at when a problem comes up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2004 02:19 AM
02-09-2004 02:19 AM
Re: nslookup fails to search all DNS servers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2004 02:47 AM
02-09-2004 02:47 AM
Re: nslookup fails to search all DNS servers
according to SEP the second DNS server will not be queried ('standard HP config').
So what's probably happening is that the first DNS server replies a NOT FOUND. And the second DNS server (who knows the answer) isn't even queried.
I think you'll have to instruct your 1st DNS server to forward queries to the second DNS server.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2004 08:10 AM
02-16-2004 08:10 AM