- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Ping strange behaviour
Operating System - HP-UX
1820620
Members
1903
Online
109626
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-19-2003 06:25 PM
тАО03-19-2003 06:25 PM
Hi all,
I have a 11i machine, which I set it to lookup DNS first and then host table, found that if say the entry is in DNS, both nslookup and ping get very fast result, however, when the host is not in DNS but only in /etc/hosts , the nslookup still fine but the ping will get long delay ( ~10sec ) before it giving out the result, any body know why?
Gordon
I have a 11i machine, which I set it to lookup DNS first and then host table, found that if say the entry is in DNS, both nslookup and ping get very fast result, however, when the host is not in DNS but only in /etc/hosts , the nslookup still fine but the ping will get long delay ( ~10sec ) before it giving out the result, any body know why?
Gordon
Gordon
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2003 06:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2003 06:31 PM
тАО03-19-2003 06:31 PM
Re: Ping strange behaviour
I would solve the problem by putting files first. Why bother with DNS if the IP addy you want is in the /etc/hosts file?
The delay is more than likely due to the fact that ping does have to look up the IP and make it thru all the DNS servers before it goes to /etc/hosts. Even though the nslookup is fine, I would almost bet the delay with ping is during the resolving of host to IP addy.
The delay is more than likely due to the fact that ping does have to look up the IP and make it thru all the DNS servers before it goes to /etc/hosts. Even though the nslookup is fine, I would almost bet the delay with ping is during the resolving of host to IP addy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2003 06:36 PM
тАО03-19-2003 06:36 PM
Re: Ping strange behaviour
It's because nslookup (as a testtool) doesn't have the same resolver routines as do utilities like ping, telnet, ftp, et. al.
You need to edit /etc/nsswitch.conf and adjust it to suit your needs. Generally the best performance results if a few very frequently used and very seldomly changed hosts are found in /etc/hosts. When NOTFOUND then go to DNS.
The other preference (and generally easier but slightly slower) is to let DNS maintain every host except loopback and the local hostname BUT you must then make sure that you have a robust DNS service with slave servers.
You need to edit /etc/nsswitch.conf and adjust it to suit your needs. Generally the best performance results if a few very frequently used and very seldomly changed hosts are found in /etc/hosts. When NOTFOUND then go to DNS.
The other preference (and generally easier but slightly slower) is to let DNS maintain every host except loopback and the local hostname BUT you must then make sure that you have a robust DNS service with slave servers.
If it ain't broke, I can fix that.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP