DNS – Domain Name System

First Listen: let your ears lead the way before your mind takes notes.

📻 FZ2CCNA Radio:

Then read: let your eyes explore before your mind starts to explain.

DNS — The Internet’s Global Air-Traffic Control System

In this chapter, we will learn DNS using a single, intelligent analogy: the global aviation control system. This analogy fits perfectly because DNS also manages traffic across a worldwide network where every destination must be precisely identified and correctly reached. Just as airplanes need to know the exact coordinates of an airport runway before landing, your computer needs to know the exact IP address of a server before connecting.

As you read this chapter, picture DNS as a world where every website is an airport with carefully maintained records, every DNS server acts like a tower of control, and every DNS query resembles a request from a pilot searching for the correct runway. This analogy will guide the entire chapter without mixing metaphors, giving you a consistent and intuitive foundation.

What Is DNS?

When an airplane wants to land somewhere, it cannot simply say Take me to Paris. It needs the exact runway coordinates, the control tower’s instructions, and the proper navigation data. In the same way, computers cannot reach www.cisco.com without first converting that human-friendly name into a precise IP address like 72.163.4.185.

DNS, the Domain Name System, performs this translation. It acts like a global network of air-traffic control towers that know how to guide your computer (the airplane) safely to the right destination (the server). Without DNS, you would need to memorize IP addresses the way a pilot would have to memorize raw coordinates for every airport in the world — clearly impossible.

DNS makes the Internet usable.

Why DNS Exists

  • Airport names
  • Control tower directories
  • Accurate maps
  • Runway numbers
  • Domain names
  • DNS servers
  • Records
  • IP addresses

DNS acts as the official navigation directory of the Internet, ensuring your device always knows where to land.

How DNS Works Step by Step

Let’s follow the exact journey your PC takes when you type a website name:

Step 1: The airplane (your PC) requests landing instructions.
  • You type www.example.com into your browser.
  • Your device asks, Where are the coordinates (IP) for this airport (domain)?
Step 2: Check the airplane’s internal navigation memory (cache).
  • If your PC already knows the IP from a recent flight, it uses it immediately.
Step 3: Ask the nearest control tower (local DNS server).
  • Your PC sends a DNS query to the DNS server assigned by your network or your ISP.
Step 4: Recursion begins – contacting higher aviation authorities.

If the local DNS server has no record, it acts like a tower that escalates the request:

  1. Root Servers
    Global aviation headquarters.
    Where can I find information about .com airports?
  2. TLD Servers
    Regional aviation centers for .com, .net, .org, etc.
    They reply: Ask this local tower for example.com
  3. Authoritative DNS Servers
    The actual control tower of the airport (domain).
    These servers know the exact runway coordinates (IP address).
Step 5: The IP address is returned to your PC.
  • The airplane receives the final landing instructions and flies directly to its destination server.

DNS Hierarchy

Just as the world’s aviation system is structured in layers, so is DNS.

Root Servers — Global Aviation Headquarters

There are 13 logical root server clusters.
They do not know every airport, but they know every region (.com, .org, .edu).

TLD Servers — Regional Aviation Centers

Examples:

  • .com
  • .net
  • .org
  • .uk
  • .mx
  • .jp

They route you to the next-level tower.

Authoritative Servers — Local Airport Control Towers

These servers store all final instructions for a domain:

  • IP address
  • Mail server locations
  • Subdomain details

When the authoritative server speaks, the answer is guaranteed to be correct.

DNS Records

Inside an airport control tower, you find documents that tell pilots which runways exist, where terminals are located, and how to reach them. DNS records serve this purpose.

Common DNS records:
RecordMeaningAnalogy
AIPv4 addressExact runway coordinates
AAAAIPv6 addressSame, but new runway standard
CNAMEAliasRedirecting you from a nickname to official airport name
MXMail serversThe mail-cargo terminal for that airport
NSName serversThe official control towers
PTRReverse lookupA lookup by coordinates instead of name
TXTText dataPolicy notes, safety notes
SOAStart of authorityThe airport’s master administrative record

Forward and Reverse Lookups

Forward Lookup

Domain ⇆ IP
A pilot asks for John F. Kennedy Airport, and receives the runway coordinates.

Reverse Lookup

IP ⇆ Domain
A pilot has coordinates and wants to know which airport they belong to.

PTR records perform reverse lookups.

DNS Caching

Pilots do not re-request instructions for every minute of flight — they keep a flight plan.
DNS works the same way.

Cached results help computers avoid repeatedly contacting the entire DNS hierarchy.

TTL (Time To Live) defines how long a result is stored.

DNS Behavior on Cisco Devices

  • Look up names
  • Forward DNS queries
  • Cache DNS data
  • Act as a basic DNS server

These features help networks operate smoothly.

Cisco Configuration Examples
Enabling DNS Lookup on a Router
R1(config)# ip domain-lookup
R1(config)# ip name-server 8.8.8.8
R1(config)# ip name-server 1.1.1.1
Setting Hostname and Domain Name
R1(config)# hostname Router1
R1(config)# ip domain-name training.lab
Creating Static DNS Entries
R1(config)# ip host webserver 192.168.10.50
R1(config)# ip host fileserver 192.168.10.60
Operating as a DNS Server
R1(config)# ip dns server
Disabling DNS Lookup (very common)
R1(config)# no ip domain-lookup

Troubleshooting DNS

Common issues:

  • Incorrect IP address (wrong runway)
  • DNS server unreachable (tower offline)
  • High latency (slow aviation routing)
  • Wrong DNS server configured
  • Missing records
Commands to test:
R1# ping www.cisco.com
R1# traceroute google.com
R1# show hosts
R1# debug domain

What to Memorize for the Exam

  • DNS purpose: name → IP
  • Hierarchy: Root → TLD → Authoritative
  • A, AAAA, CNAME, MX, NS, PTR, SOA
  • Difference between recursive vs. iterative queries
  • TTL concept
  • Cisco commands for DNS
  • What no ip domain-lookup does

Exam Tips

  • Expect questions about DNS record types.
  • Expect to identify the purpose of each DNS server level.
  • Expect to interpret DNS packets or queries.
  • Know that routers try DNS lookup when you mistype commands.
  • Be ready to configure and troubleshoot DNS on Cisco routers.

Summary

DNS is the Internet’s global air-traffic control system, guiding every device safely to its correct destination. It translates readable names into IP addresses the same way an aviation tower gives precise instructions to a pilot. With a layered hierarchy, different types of records, caching, and support built into Cisco routers, DNS forms one of the most essential foundations of all modern networking.

Understanding DNS not only improves your CCNA skills but also gives you a mental model that will serve you throughout your entire networking career.


Instructions

  • Select the correct answer for each technology concept.
  • All questions pertain directly to the networking technologies explained.
  • After answering, click “See Result” to see your score and feedback.

Quiz: DNS

Every DNS query you master today brings you one step closer to commanding the entire network tomorrow—go ace that quiz!

1 / 10

Which DNS record maps a domain name to an IPv4 address?

2 / 10

Which DNS servers are responsible for knowing the locations of TLD servers such as .com or .net?

3 / 10

A pilot analogy is used in the material to describe which DNS process?

4 / 10

What is the primary purpose of DNS in a network?

5 / 10

Which DNS record performs reverse lookups (IP → domain)?

6 / 10

Which type of DNS server stores the final, authoritative records for a domain?

7 / 10

Which command disables DNS lookup on a Cisco router?

8 / 10

What is the purpose of TTL in DNS?

9 / 10

Which step in DNS resolution involves checking the PC’s own DNS cache?

10 / 10

Which DNS record indicates the primary administrative information for a domain?

Your score is

The average score is 65%

0%

Next Lesson: HTTP

HTTP↗

Scroll to Top