Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1602
  • 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.

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

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