- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ping/ssh <host> resolving to incorrect IP address
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
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
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-12-2015 03:37 AM
11-12-2015 03:37 AM
When I ping/ssh to one particular host using the hostname the request is going to an incorrect IP address, it works fine if I use the explicit IP address. The incorrect IP address happens to be in the same subnet as the correct IP address x.x.x.228 rather than x.x.x.80
If I do an nsquery for this host it returns the correct IP address from /etc/hosts, the incorrect IP address is not present in /etc/hosts or on the DNS servers.
There are over 1,000 entries in /etc/hosts and this is the only one that appears to be incorrectly resolved
Any ideas why this is happening?
HP-UX 11.31
# nsquery hosts <hostname>
Using "files [NOTFOUND=continue UNAVAIL=continue] dns " for the hosts policy.
Searching /etc/hosts for <hostname>
Hostname: <hostname>
Aliases:
Address: <correct_ip_address>
Switch configuration: Terminates Search
# ping <hostname>
PING <incorrect_ip_address> byte packets
----<incorrect_ip_address> PING Statistics----
2 packets transmitted, 0 packets received, 100% packet loss
# cat /etc/nsswitch.conf
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2015 04:33 AM