Nslookup

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
  Server:         192.168.1.1
  Address:        192.168.1.1#53

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

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)