Difficulty: Beginner
Estimated Time: 10 minutes

Explore DNS With Dig

In this exercise you'll learn about DNS by using dig to make DNS queries. These are the primary objectives of this exercise:

  • Expose the different responsibilities of different members of the DNS hierarchy.
  • Explore how different DNS servers respond differently to different DNS queries.
  • Familiarize yourself with the different kinds of DNS record types, and distinguish between them.

dig is a command line tool, for instructions on how to install it go here.

There are many different kinds of DNS records. The two most important types of record are:

  • A and AAAA -- A and quad A records map domain names to IP addresses. A records are for IPv4 addresses and AAAA records are for IPv6 addresses.
  • NS -- NS records map domain names to other domain names. Specifically they map a domain name to the name of it's authoritative DNS server.

Lets use dig to explore the differences between these record types. Try the following in your terminal:

dig A google.com

Don’t stop now! The next scenario will only take about 10 minutes to complete.

Explore DNS With Dig

Step 1 of 2