From LQWiki
Jump to navigation Jump to search

nslookup is a program used to manually query DNS servers.

An example query:

  $ nslookup -sil wiki.linuxquestions.org

  Non-authoritative answer:
  Name:   wiki.linuxquestions.org

Server and Answer describe the server asked. Name is the host we have asked about and Address is its IP address

Note that I have used the -sil flag, because it supresses the message that nslookup is obsolete.

See also

  • dig is a similar program.
  • host gives you the hostnames assigned to an IP (reverse direction)