DNS FUNDAMENTALS

Networking Fundamentals

Learning Outcome

5

Relate DNS to real-world internet usage (like browsing websites)

4

Identify common DNS record types and their purpose

3

Understand the step-by-step DNS lookup process

2

Describe how domain names map to IP addresses

1

Explain why DNS is needed despite IP addressing

 

Let's Recall

  • Every device on the internet has a unique IP address (e.g., 192.168.1.1)

  • IP addresses help computers identify and communicate with each other

  • They act as a digital identity for devices

  • Data always includes a source IP (sender) and destination IP (receiver)

  • Devices use IPs to locate and deliver data accurately

  • Without IP addresses, communication wouldn’t be possible

  • But IP addresses are hard for humans to remember, especially at scale

The Story of Timmy and the Internet Phonebook

Once upon a time, there was a curious boy named Timmy.who loved using the internet

One day, Timmy wanted to visit his favorite website:
“CoolGames.com” So he typed it into his computer and pressed ENTER.

 But inside the computer... something funny happened!

The computer said:
“Umm… I don’t understand names . I only understand numbers!” Timmy was confused.
“Numbers? What numbers?!

Just then, a magical helper appeared — Dina the DNS Fairy​

Don’t worry, Timmy! I have a special book called the Internet Phonebook!” Timmy asked,
“What does it do?

 Dina opened her glowing book and explained:

“This book helps computers find websites!”

She showed him:

CoolGames.com → 123.45.67.89

“See?” she said.
“This number is the real address!”

In a flash, Dina told the computer the number.

The computer said:
“Ohhh! Now I understand!”

And BOOM!!!
The website opened instantly

Timmy was amazed!

“So… I just type names… and you find the numbers?”

Dina nodded:
“Exactly! That’s my job!

Then she said something important:

“Without me (DNS), you would have to remember numbers like:
123.45.67.89 ”

Timmy laughed:
“That’s too hard!”

Dina smiled and said:

“That’s why I help everyone on the internet.
Whenever you type a name, I quickly find the number!”

“And I do it in less than a second!

Transition from Analogy to Technical Concept(Slide 5)

Imagine you want to call your friend using your phone

You don’t usually remember their actual phone number.
Instead, you simply search using their contact name

So in this analogy:

  • Contact name → Domain name

  • Phone number → IP address

  • Phone lookup → DNS resolution

Transition from Analogy to Technical Concept(Slide 5)

Now imagine the internet working in a similar way

Instead of using a simple contact list like your phone, the internet uses a huge network of DNS servers to find IP addresses.

When you enter a domain name, your computer sends a request to these DNS servers asking:

“What is the IP address of this website?”

The DNS servers then work together to find the correct IP address and send it back to your system.

Transition from Analogy to Technical Concept(Slide 5)

Even though this process includes multiple steps happening behind the scenes, it all happens incredibly fast ⚡

Usually within just a few milliseconds!

So, while the analogy looks simple, the real DNS system is actually a distributed and hierarchical network that efficiently connects human-friendly names to machine-readable IP addresses.

Introduction to DNS

What is DNS?

The Internet's Phonebook

DNS stands for Domain Name System. It is the system that translates human names into computer numbers.

 

We type: Google.com

DNS finds: 142.250.183.14

How DNS Works

How DNS Works (Domain → IP Resolution)

Here’s what happens when you type a URL

  • IP comes back → browser loads the website

  • You type google.com in browser

  • Your system asks a DNS Resolver:

    “Hey, what’s the IP for this?”

  • Resolver checks cache (if already known)

  • If not found, it goes on a journey:

    • Root Server → “Where is .com?”

    • TLD Server → “Where is google.com?”

    • Authoritative Server → “Here’s the IP”

How DNS Lookup

The DNS Lookup Journey

The Question

You type a URL in your browser.

The Search

The DNS Resolver asks around for the IP.

The Answer

The IP address is found and sent back.

The Load

The browser loads your favorite site!

Component of DNS

The 4 Key Components

Resolver

 

The helper that starts the search. Usually your ISP.

Root Server

The first stop. It points to the right TLD server.

 

TLD Server

 

Stores data for extensions like .com or .org.

Authoritative

The final source that has the actual IP address.

Your Device  Resolver  →   Root Server  →  TLD Server →  Authoritative Server  → IP Address 

Common DNS Types

Common DNS Record Types

Record Type

Full Name

What it does?

A Record

Address Record

Points a domain to an IPv4 address (numbers like 1.2.3.4).

AAAA Record

IPv6 Address

Points a domain to a newer, longer IPv6 address.

MX Record

Mail Exchange

Tells the internet where to send emails for that domain.

CNAME

Canonical Name

Alias record. Points one domain to another domain.

What is a URL

It's like a Home Address

URL stands for Uniform Resource Locator. Just like you have a home address for mail, every page on the internet has a unique address so your browser can find it.

Anatomy of a Web Address

Parts of a URL

Parts of a URL :-

https://www.google.com/search?q=dns#section1

Protocol (https://)

  • Defines how data is transferred

Subdomain (www)

  • A subdomain is an extension added before the main domain name to organize or separate different parts of a website.

  • Different subdomains = different services

Parts of a URL

Domain Name (google.com)

  • The human-readable name of the website

  • google → name

Top-Level Domain (.com)

  • A Top-Level Domain (TLD) is the last part of a domain name, the bit that comes after the final dot.

  • In www.google.com → .com is the TLD

  • The TLD tells you the category, purpose, or country of a website.

Parts of a URL

Path (/search)

  • A path is the part of a URL that comes after the domain and tells the server which specific page or resource you want.

  • So here:  /search = Google search page

Query (?q=dns)

  • A query is the part of a URL used to send extra information or requests to the server. It usually starts after a question mark ? in the URL.

  • Structure: domain.com/path?key=value

  •  Starts with "?"

  • Used to send data to the server

Parts of a URL

Parameters (q=dns)

  • Parameters are the actual pieces of data sent inside a URL query that tell the server exactly what you want.

  • They are written in key-value pairs.

Fragment (#section1)

  • A fragment is the part of a URL that comes after the hash symbol # and is used to navigate to a specific section within a webpage.

  • Structure: https://example.com/page#section1

Parts of a URL

FAQs

  • What happens to emails if an MX record is missing ?

-> Without an MX (Mail Exchanger) record, no mail server knows where to deliver emails sent to @yourdomain.com. Emails would fail to route and get lost. MX records are essential for any domain that needs to send or receive email.

FAQs

  • What would Happen if DNS did not exist ?

-> Without DNS, you would need to memorize a different numeric IP address for every website you visit. DNS makes the internet usable by letting humans use names while machines continue to use IP addresses behind the scenes.

FAQs

  • In what order do DNS servers get contacted during a full resolution?

-> Root Server → TLD Server → Authoritative Server. The Root Server answers 'who handles .com?', the TLD Server answers 'who handles google.com?', and the Authoritative Server gives the actual IP address.

 

Summary

5

DNS records define how domains behave (web, mail, etc.)

4

DNS queries go through a structured hierarchy:

3

It works like a global phonebook system

2

DNS solves this by mapping names → IPs

1

IP addresses identify devices, but they’re hard to remember

Quiz

Which DNS server is the FIRST to receive your query when you type a domain name?

 A. Root Server 

B. TLD Server

C. Authoritative Server

D. Recursive Resolver

Quiz-Answer

Which DNS server is the FIRST to receive your query when you type a domain name?

A. Root Server

B. TLD Server

C. Authoritative Server

D. Recursive Resolver

Quiz

If you visit the same website twice, why is the second DNS lookup faster?

A. The root server remembers you

B. The resolver uses its cache

C. The TLD server stores your IP

D. The authoritative server sends a faster response

Quiz-Answer

If you visit the same website twice, why is the second DNS lookup faster?

A. The root server remembers you

D. The authoritative server sends a faster response

C. The TLD server stores your IP

B. The resolver uses its cache

Quiz

Which part of a URL defines how data is transferred?

A. Domain name

B. Path

C. Protocol

D. Query string

Quiz-Answer

Which part of a URL defines how data is transferred?

A. Domain name

B. Path

D. Query string

C. Protocol

fairy-story

By Content ITV

fairy-story

  • 22