- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ip mismatch between ping and nslookup
Operating System - HP-UX
1752671
Members
5613
Online
108789
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
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
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
тАО02-23-2011 07:20 PM
тАО02-23-2011 07:20 PM
ip mismatch between ping and nslookup
Hi All,
I got an issue about ping, when I ping a host which name entry is in hosts file but the ping always use DNS to resolve the name and totally ignor the hosts file entry . the OS HPUX 11.31
From the following output can see the IP for host ausysb01 is 172.16.8.35 but when pinging it it reply from 172.16.8.44
Can any one give me an idea what is going on for this one and how the ping get the difference IP
===============
# nslookup ausysb01
Using /etc/hosts on: AUSYSPA1
looking up FILES
Name: AUSYSB01.AUSY.ASTRAZENECA.NET
Address: 172.16.8.35
Aliases: AUSYSB01
# nsquery hosts ausysb01
Using "files [NOTFOUND=continue UNAVAIL=continue] dns" for the hosts policy.
Searching /etc/hosts for ausysb01
Hostname: AUSYSB01.AUSY.ASTRAZENECA.NET
Aliases: AUSYSB01
Address: 172.16.8.35
Switch configuration: Terminates Search
# ping ausysb01
PING ausysb01.ausy.astrazeneca.net: 64 byte packets
64 bytes from 172.16.8.44: icmp_seq=0. time=0. ms
64 bytes from 172.16.8.44: icmp_seq=1. time=0. ms
----ausysb01.ausy.astrazeneca.net PING Statistics----
2 packets transmitted, 2 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0
================
Regards,
joseph
I got an issue about ping, when I ping a host which name entry is in hosts file but the ping always use DNS to resolve the name and totally ignor the hosts file entry . the OS HPUX 11.31
From the following output can see the IP for host ausysb01 is 172.16.8.35 but when pinging it it reply from 172.16.8.44
Can any one give me an idea what is going on for this one and how the ping get the difference IP
===============
# nslookup ausysb01
Using /etc/hosts on: AUSYSPA1
looking up FILES
Name: AUSYSB01.AUSY.ASTRAZENECA.NET
Address: 172.16.8.35
Aliases: AUSYSB01
# nsquery hosts ausysb01
Using "files [NOTFOUND=continue UNAVAIL=continue] dns" for the hosts policy.
Searching /etc/hosts for ausysb01
Hostname: AUSYSB01.AUSY.ASTRAZENECA.NET
Aliases: AUSYSB01
Address: 172.16.8.35
Switch configuration: Terminates Search
# ping ausysb01
PING ausysb01.ausy.astrazeneca.net: 64 byte packets
64 bytes from 172.16.8.44: icmp_seq=0. time=0. ms
64 bytes from 172.16.8.44: icmp_seq=1. time=0. ms
----ausysb01.ausy.astrazeneca.net PING Statistics----
2 packets transmitted, 2 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0
================
Regards,
joseph
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2011 07:29 PM
тАО02-23-2011 07:29 PM
Re: ip mismatch between ping and nslookup
What is in your /etc/nsswitch.conf ?
Regards
Shibin
Shibin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2011 07:53 PM
тАО02-23-2011 07:53 PM
Re: ip mismatch between ping and nslookup
the nsswitch.conf is
files[NOTFOUND=continue UNAVAIL=continue] dns
BTW I find the issuse is caused by ipnodes which is point to DNS then files, After I chane it as well the problem fixed.
Thanks anyway.
Joseph
files[NOTFOUND=continue UNAVAIL=continue] dns
BTW I find the issuse is caused by ipnodes which is point to DNS then files, After I chane it as well the problem fixed.
Thanks anyway.
Joseph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2011 07:54 PM
тАО02-23-2011 07:54 PM
Re: ip mismatch between ping and nslookup
The issue was caused by ipnodes after change it to files then DNS problem fixed
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP