IT Knowledge Base

Technical Repository

HowTo: Debian/Ubuntu – nslookup Not Found

You need to install the dnsutils package. The Berkeley Internet Name Domain (BIND) implements an Internet domain name server. BIND is the most widely-used name server software on the Internet, and is supported by the Internet Software Consortium, www.isc.org. This package delivers various client programs related to DNS that are derived from the BIND source tree.

  • dig – query the DNS in various ways
  • nslookup – the older way to do it
  • nsupdate – perform dynamic updates (See RFC2136)

Install dnsutils

Login as root user and type the following commands:

apt-get update
apt-get install dnsutils

Now you should be able to use dig, host and other tools.

dig www.google.com

; <<>> DiG 9.9.2-P1 <<>> www.google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<

nslookup www.google.com

Server:         11.11.11.11
Address:        11.11.11.11#53

Non-authoritative answer:
Name:   www.google.com
Address: 74.125.226.81
Name:   www.google.com
Address: 74.125.226.84
Name:   www.google.com
Address: 74.125.226.83
Name:   www.google.com
Address: 74.125.226.80
Name:   www.google.com
Address: 74.125.226.82



Leave a Reply