• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1648
  • Last Modified:

AIX, nslookup

I can ping an address, but can not find it in the nslookup

# ping
PING ( 56 data bytes
64 bytes from icmp_seq=0 ttl=128 time=0 ms
64 bytes from icmp_seq=1 ttl=128 time=0 ms

---- PING Statistics----
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0/0/0 ms
# nslookup

** server can't find NXDOMAIN

Open in new window

Am I reading this correctly

Should not this be impossible
Los Angeles1
Los Angeles1
1 Solution
nslookup queries your nameserver for the IP of a hostname (lookup) or the hostname of an IP (reverse lookup).

ping would have to lookup the IP had you specified a hostname, but because you're using an IP address with ping there is absolutely no need to query the DNS, because there is already an IP given.

Moreover, nslookup doesn't consult your /etc/hosts file, while ping does (provided /etc/netsvc.conf contains "local" in the "hosts=" specification), so you might well be able to even ping a hostname which nslookup doesn't find.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now