Linux Journey

DNS

6. DNS Tools

nslookup

The "name server lookup" tool is used to query name servers to find information about resource records. Let's find where the name server for google.com is:


[email protected]:~$ nslookup www.google.com
Server: 127.0.1.1
Address: 127.0.1.1#53

Non-authoritative answer:
Name: www.google.com
Address: 216.58.192.4

dig

Dig (domain information groper) is a powerful tool for getting information about DNS name servers, it is more flexible than nslookup and great for troubleshooting DNS issues.


[email protected]:~$ dig www.google.com

; > DiG 9.9.5-3-Ubuntu > www.google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER

Alıştırmalar

Read up on the manpage for dig.

Quiz

What tool is used to get detailed information about DNS name servers?