- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem with nslookup
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
11-25-2004 07:00 PM
11-25-2004 07:00 PM
/etc/nsswitch.conf for hosts are:
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]
With the adress in /etc/hosts the respons should be really quick its just locally.
Any one have an idea??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2004 07:10 PM
11-25-2004 07:10 PM
Re: Problem with nslookup
I agree, when the servername is matched in /etc/hosts the response should be quick ( mind short names vs. fqdn). When not matched it will go to the first nameserver in /etc/resolv.conf. When this server does not responce you will get a timeout before it will go to the second server.
Regards,
Gideon
It is quite a long line in the nsswitch.conf
Why not just
host: files [NOTFOUND=continue] dns
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2004 07:18 PM
11-25-2004 07:18 PM
Re: Problem with nslookup
---------------
hosts: files [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue] dns [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]
aliases: files
---------------
Hope it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2004 07:22 PM
11-25-2004 07:22 PM
Re: Problem with nslookup
The adress we need to resolve is a print server. we do 400 - 600 printjobs/day and when we not could resolve the printserver the print que goes down.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2004 09:15 PM
11-25-2004 09:15 PM
Re: Problem with nslookup
regards
SK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2004 10:21 PM
11-25-2004 10:21 PM
Re: Problem with nslookup
You've shown your nssiwtch.conf, but what is your resolv.conf? I'm thinking of domain names and search lists.
Do you specify which DNS server to use when you use nslookup?
Is the 'problem' host on the same domain as other 'non-problem' hosts?
JP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2004 11:10 PM
11-25-2004 11:10 PM
Re: Problem with nslookup
I dare not dissable dns.
Our resolve.conf:
#
search xx.xxxx.xxx xx.xxxx.xxx
nameserver xx.xx.xx.xx
nameserver xx.xx.xx.xx
When i use nslookup just:
#nslookup host/ip
even that we just use files in nsswitch.conf we get:
*** Can't find server name for address xx.xx.xx.xx: Timed out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2004 12:50 AM
11-26-2004 12:50 AM
Re: Problem with nslookup
retrans 2500
retry 2
retrans
Retransmission timeout. It is interpreted during
the res_init() (see resolver(3N)) call. It has
higher precedence than setting it through the
set_resfeild() (see resolver(3N)) API and lower
precedence than setting it through the RES_RETRANS
(see resolver(3N)) environment variable. Whenever
an invalid value is specified for retrans, a
message is flagged in syslog. The default value
is 5000 milliseconds.
retry
Number of retries. This is interpreted during the
res_init() (see resolver(3N)) call. It has higher
precedence than setting it through the
set_resfeild() (see resolver(3N)) API and lower
precedence than setting it through the RES_RETRY
(see resolver(3N)) environment variable. Whenever
an invalid value is specified for retry, a message
is flagged in syslog. The default value is 4.
That will speed up any delays going from 1 nameserver to another - unfortunately, Windows does a better job - if it can't get to the first one, it goes to the second - if successful, it's next query will automatically go to the second. In unix, this is not the case - we will always try the nameservers in order based on resolv.conf.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2004 01:20 AM
11-26-2004 01:20 AM
Re: Problem with nslookup
Does nslookup use resolv.conf anyway somehow???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2004 01:46 AM
11-26-2004 01:46 AM
Re: Problem with nslookup
You can verify that Files is being used in name lookups by something like
nsquery hosts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2004 01:47 AM
11-26-2004 01:47 AM
SolutionI think going files first in nsswitch is a stopgap measure. It requires you to maintain your /etc/hosts database and you can very quickly get out of synch with changes in your environment because there is no means to get changes to you other than the good graces of the DNS administrator letting you know.
I would suggest the following items:
Try dns first in nsswitch.conf
Contact the DNS admins. If they use microsoft, make sure they are up to date on fixes and downloads
Make sure your system is updated to the latest BIND/DNS 9.2.x
http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=BIND9.2
You can set one of your hp-ux servers as a secondary or slave DNS server and have your Unix boxes take DNS information off of a standards based Unix BIND/host system.
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
11-26-2004 01:59 AM
11-26-2004 01:59 AM
Re: Problem with nslookup
like one does if one connects a Linux box via an ISP.
Also the nslookup program itself seems to be implement differently on varoius Unix flavours.
I can recall that I had to use the getent utility on a Solaris box to check my nsswitch.conf as nslookup didn't care at all for a files entry in there but went to contact the DNS server right away.
Besides, I'd suggest to move to the dig utility for DNS troubleshooting, a tool Linux distros adopted to replace nslookup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2004 02:29 AM
11-26-2004 02:29 AM
Re: Problem with nslookup
We used v. 4.9.7 of bind, pretty old i guess.
On the windows side idont want to guess....