DNS Deep Dive

The Architecture of Global Resolution

Section Progress 0%

The Archive: The World Before DNS

Picture the early 1980s. The internet was still ARPANET, a research network small enough that most of the people on it knew each other. Finding another computer meant looking its address up in a list, and at that size the list was annoying but manageable.

That wouldn't last.

LegacyHOSTS.TXT

Legacy Technology: The HOSTS.TXT File

Plain meaning: Back then, name resolution ran on one plain text file called HOSTS.TXT, and every computer kept its own copy. Each line paired a hostname with its IP address, so the file was basically the entire internet written out line by line.

  • SRI edits the master: a new machine or a changed address means one more line in the official list.
  • Everyone downloads it: every site pulls the new copy over FTP, by hand.
  • Lookups search your own copy: there’s no server to ask, just the file on your disk.
  • No safety net: no automation, no hierarchy, no fallback. Miss an update and, from your point of view, those hosts simply don’t exist.

Remember: that worked while the network was small. As it grew, the whole arrangement got fragile and frustrating.

When the Internet Outgrew the File

The HOSTS.TXT model didn't fail because it was badly designed. It failed because the internet changed underneath it. As more systems came online, three cracks showed up:

  • The file kept growing: every lookup meant searching a longer and longer list.
  • Sync failures: copying the whole file to every system ate a huge amount of bandwidth.
  • Single point of failure: with one master list, if SRI went offline, the "map" of the internet was effectively frozen.

Try running today's internet that way and it falls apart fast. With billions of hostnames the file would be enormous, updates would flood the network, and simple lookups would crawl.

The technology wasn't the problem; scale was.

Why DNS Was the Breakthrough

DNS fixed this by dropping the idea that every computer had to know everything. Instead of carrying a complete map, your computer asks a question only when it needs an answer, "Who's responsible for this name?", and then follows the trail to the server that actually knows.

That shift, from one shared file to a distributed system where every part has an owner, is what let the internet keep growing without breaking itself.

Here's a detail most people never notice: the hosts file never went away. Windows still keeps one at C:\Windows\System32\drivers\etc\hosts, entries in it win over DNS, and that's exactly why malware likes to edit it.

Then to now

Most people assume DNS is about as old as the web. It's older.

1983the year DNS was designed, years before the first website went live
DNS: then and now
PeriodWhat changed
1970sSRI's Network Information Center maintains HOSTS.TXT, the single file every ARPANET host downloads.
1983Paul Mockapetris publishes RFC 882 and RFC 883, the first DNS specifications.
1987RFC 1034 and RFC 1035 replace them. They are still the core DNS standards today.
2005DNSSEC is rewritten as RFC 4033-4035, adding signatures so resolvers can validate answers.
TodayDNS over TLS (RFC 7858, 2016) and DNS over HTTPS (RFC 8484, 2018) encrypt lookups, and major browsers can send DoH queries on their own.

The history matters on the job: that 1980s design trusted everyone, which is why the security features you'll meet later had to be bolted on afterward.

Technical Intel: What Is DNS?

Here's a scene you've lived a thousand times: you type bbtechtools.com, press Enter, and the page just appears. Before a single byte of that page moved, your computer had to answer one question: what's the IP address for that name? The Domain Name System (DNS) answers that question quietly, all day long, on every device you own.

ConceptNames vs numbers

More Than a Phone Book

Plain meaning: Computers route traffic with numbers, while people remember names. DNS bridges that gap, so you can type a clear, memorable name while the network keeps working with exact numeric addresses behind the scenes.

The phonebook view

People call DNS the internet's "phonebook," and that's a fair start, but it only tells part of the story.

The better picture

A distributed directory: millions of servers, each responsible for its own slice of names, constantly being asked and updated.

Remember: people work with names, networks work with numbers, and DNS is the translator in the middle.

The Home Address Analogy

The number DNS hands back works like a mailing address: it tells the network where a system lives so data lands in the right place. An IPv4 address has two parts.

The network portion is the street, which routers use to choose the general path, and the host portion is the house number that picks out one device on that street.

Put together, they form a complete destination such as 104.26.10.224. DNS's whole job is getting you from the name to that address. How the address itself splits into network and host bits is the main event in IPv4 Operations.

COGNITIVE_LOAD_EXERCISE.SH STATUS: TEST PENDING

Try it yourself: can you hold a string of numbers in your head as easily as a name? Start the test and watch how fast it gets hard. That gap is the whole reason DNS exists.

STAGE 1: 5 CHARACTERS
---

Exam angle: DNS resolves names to IP addresses (and, with PTR records, addresses back to names). When a question says a user can reach a site by IP address but not by name, DNS is your first suspect.

Quick check: if every DNS server vanished for an hour, could you still reach a website? What would you need to know to do it?

Physical Intel: Where is DNS?

A question new techs ask a lot: where does DNS actually live? You can't buy "a DNS" off a store shelf. DNS is a service role you install and configure on a server (or one that runs inside your home router), and that role turns ordinary hardware into one piece of a global directory.

Enterprise Datacenter
ConceptDNS hierarchy

The Distributed Database Concept

Plain meaning: DNS isn't one server hidden in a basement, and no single organization or location runs all of it. It's a globally distributed, hierarchical database made of thousands of independently managed servers around the world.

  1. Root serversKnow where the Top-Level Domain (TLD) servers live.
  2. TLD serversHandle names like .com, .org and .net, and point to each domain's own servers.
  3. Authoritative serversHold the actual records for a specific domain.

The trick: delegated authority

Instead of storing every record in one place, responsibility is split up on purpose. Each server answers only for its own part of the naming tree and points you somewhere else for everything else.

Why it survives outages

If one server, one data center or even a whole region goes offline, only the part of DNS it was responsible for is affected, and the rest of the internet keeps resolving.

Remember: DNS doesn't work in spite of being distributed; it works because it is. That's why it stays fast and scalable through outages, attacks and enormous global demand.

The Backbone: Root Servers, TLDs, and Authoritative Name Servers

When you type a domain name into a browser, your computer doesn't magically know where that site lives. Instead, a resolver asks a short series of questions, moving down the DNS hierarchy one step at a time until it reaches the server that actually has the answer.

That hierarchy keeps DNS scalable, reliable and fast, and it's built on three layers.

Root Servers: The Starting Point

  • Knows the TLDs, not the sites. Ask where bbtechtools.com is and you get directions, not an IP: “I don’t know that domain, but I know who handles .com.”
  • 13 logical systems, A through M. Anycast spreads them over well over a thousand physical servers, so a nearby copy answers fast, even during outages and attacks.
  • Trap: “13 root servers” doesn’t mean 13 machines. The root is the internet’s table of contents, not the encyclopedia.

TLD Servers: Narrowing the Search

  • One whole category each: .com, .org, .net, or a country code like .us or .uk.
  • No site records here. It answers one question: “Who is authoritative for this domain name?”
  • That’s how millions of domains live under one TLD without overwhelming any single system.
  • Run by registries: Verisign, for example, operates the .com and .net TLD servers.

Authoritative Name Servers: The Source of Truth

  • Holds the actual records: IP addresses, mail servers, security policies and service locations. If DNS were a court system, this is the final ruling.
  • Who runs it: the domain owner, directly or by handing the job to a hosting provider, cloud platform or DNS service.
  • Exam tip: each referral hands over NS records, the signposts that name the next server to ask.

Recursive vs. Iterative: Who Does the Legwork?

Every DNS lookup is a chain of questions. The two query types describe who is responsible for finding the final answer at each link in that chain.

  • Recursive (“find it for me”): the asker wants the final answer or an error (NXDOMAIN). The server answers from cache or goes and finds it. Your laptop sends this to its resolver.
  • Iterative (“who do I ask next?”): the asker accepts a referral and asks the next server itself. Your resolver sends this to root, TLD and authoritative servers.
  • Hotel front desk: you ask the concierge once and wait (recursive). The concierge calls a restaurant guide, then the district office, then Luigi’s, each one pointing to the next (iterative).

Walkthrough: resolving www.example.com

  1. Recursive: you ask the resolver

    Your laptop asks its resolver (often your router or the company's DNS server) for www.example.com and waits.

  2. Cache check

    The resolver checks its cache. If a fresh answer is there, it replies right away and the lookup ends.

  3. Iterative: ask a root server

    The resolver asks a root server. The root does not know the address but refers it to the .com TLD servers.

  4. Iterative: ask the .com TLD

    The resolver asks a .com TLD server, which refers it to example.com's authoritative name servers.

  5. Iterative: ask the authoritative server

    The resolver asks the authoritative server, which owns the zone and returns the actual A record (the IP address).

  6. Cache it and answer

    The resolver caches that answer for its TTL (time to live) and finally sends it back to your laptop, completing the recursive request from step 1.

Recursive and iterative DNS queries
ComparisonRecursiveIterative
Who usually asksClients (stub resolvers on PCs and phones)Resolvers talking to root, TLD and authoritative servers
Who does the workThe server that received the queryThe asker, one hop at a time
What comes backThe final answer or an error (such as NXDOMAIN, "no such domain")The answer if known, otherwise a referral to the next server
Troubleshooting tie-inIf the resolver is down or wrong, every lookup on the device failsnslookup with a specific server, or dig +trace, walks the referrals hop by hop

Exam tip: clients send recursive queries to their resolver; the resolver sends iterative queries out to the DNS hierarchy. Use the Recursive and Iterative buttons in the trace simulator below to watch both paths.

The Cast: DNS Server Roles in Action

Your device asks one question. Behind the scenes, the resolver may be making three more.

Now that you know the hierarchy, watch it work. Pick a mode, then start the trace. Recursive shows what your device experiences: one question to the resolver and one finished answer back. Iterative shows the legwork behind it, as the resolver walks the referrals from root to TLD to the authoritative server.

PATH_TRACE_UTILITY.EXE STATUS: READY

Visualizing the Quest for www.bbtechtools.com

Generated client hardware reference
Your Device
Generated resolver hardware reference
Recursive Resolver
Generated server hardware reference
Root Server
Generated server hardware reference
TLD Server
Generated server hardware reference
Auth Server
> Select a mode and click Start...

DNS at Home vs DNS in the Enterprise

DNS is everywhere, but it doesn't run the same way everywhere. Knowing the difference explains why name resolution feels effortless at home and gets complicated fast at company scale.

Home gateway and laptop beside enterprise servers and two workstations.
Generated deployment examples. The HTML lesson distinguishes local caching, recursive resolution and authoritative service.
Home networkDNS at home

Home Implementation

Plain meaning: At home, DNS is simple, centralized and mostly invisible.

Who answers
Most households use their ISP's DNS servers or a public resolver like Google (8.8.8.8) or Cloudflare (1.1.1.1).
The router's job
The home router usually sits in the middle as a forwarder: it takes requests from your devices and passes them upstream. It doesn't host authoritative records or enforce advanced policies.
On the job
At home, "DNS is broken" usually means the router's forwarder or the ISP's resolver is struggling. Pointing one client at a known public resolver is a quick way to test that theory.
nslookup example.com 1.1.1.1

Remember: the home router forwards lookups; it doesn't own any records.

EnterpriseInternal DNS

Enterprise Implementation

Plain meaning: In a company, DNS is foundational infrastructure.

Internal servers
Organizations run their own internal DNS servers, often integrated with Active Directory, to resolve names for workstations, servers, applications and printers that are never exposed to the public internet.
Built for scale
Enterprise DNS runs on several redundant servers, is split up by network zone, and ties into directory security controls.
On the job
Domain-joined PCs should use the internal DNS servers. Point one at a public resolver and it can no longer find domain controllers or internal names.

Remember: domain-joined PCs use the internal DNS servers, not a public resolver.

SecurityHome vs enterprise

Security and Control Differences

Plain meaning: At home, DNS security is minimal. In an enterprise, DNS is a major security boundary.

Enterprise controls

Sinkholing (redirecting requests for malicious domains), DNS filtering and DNSSEC validation.

Why attackers care

Attackers use DNS for command-and-control (C2) traffic and data exfiltration, which is why defenders treat DNS logs as high-value telemetry.

Remember: the same small misconfiguration that annoys one laptop at home can take down name resolution for an entire office.

The Storefront: Anatomy of a Packet

When DNS acts up, sooner or later you'll look at the actual traffic in Wireshark or read dig output. A DNS query isn't magic: it's a structured message, and knowing the header fields and flags tells you what the client asked and what the server said back.

12bytes in the fixed header that starts every DNS message
TACTICAL INTEL: PACKET STRUCTURE

Standard DNS Header Breakdown

Every DNS message, query or response, starts with a fixed 12-byte header. Select a field below to decode what it does. Click, tap or use the keyboard.

DNS Header (12 Bytes) Protocol: UDP/53

SELECT A FIELD

Analyze the raw hex data to understand how DNS servers communicate state and errors.

ConceptDNS transport

Truncation and the TCP retry

Plain meaning: The header's truncation (TC) flag tells the client the answer didn't fit in the response.

How it works
DNS runs over both UDP and TCP, so the resolver simply retries over TCP when it needs to. Modern extensions allow bigger UDP payloads, but size limits along the path still matter.
Troubleshooting tie-in
For N10-009 objective 3.4: a firewall that allows only UDP port 53 can let small answers through while silently breaking larger ones.

Remember: One small lookup that works doesn't prove the whole DNS path is healthy.

Linking DNS to Security: CAA Records

DNS doesn't only resolve names; it also helps decide who to trust. A CAA (Certificate Authority Authorization) record lists which certificate authorities (like DigiCert or Let's Encrypt) may issue TLS certificates for your domain. If someone asks a different CA for a certificate for your site, a CA that follows the rules checks the CAA record and refuses.

Keep the limit in mind: CAA is an instruction to certificate authorities, not a technical block on an attacker.

It's the spot where name resolution (DNS) meets identity trust (PKI).

The Engine: DNS Server Software

Registering a domain name is only the beginning.

Something has to actually answer questions about that domain all day long, and that's the job of DNS server software.

Here's what turns a general-purpose server into an authoritative node in the DNS system:

  1. Static IPClients have to be able to find it at the same address every time.
  2. Install and configurePut DNS server software on that machine and set it up.
  3. Listen on port 53It starts listening for queries on port 53.
  4. Answer from the zone fileReplies come from the data in its zone file.

The Zone File: The Blueprint

At the heart of it is the zone file, a structured list of records that defines how a domain behaves. Its records map names to IP addresses, identify mail servers, delegate authority and control resolution behavior. Without server software loading that file, a domain is just a registration: nothing answers queries, and its services can't be reached by name.

Example: a small zone for example.com

Each line in a zone file is one record: a name, a type and a value. The @ symbol means the domain itself (example.com). Here is what a small business zone might hold:

Example records for example.com
NameTypeValueWhat it does
@SOAns1.example.com, serial 2026102601Start of Authority: names the primary server and the zone's version number. Raise the serial after each change so secondary servers copy the update.
@NSns1.example.comName Server: lists a server that is authoritative for this domain.
@A203.0.113.10Address: example.com points to this IPv4 address.
wwwCNAMEexample.comCanonical Name: www.example.com is an alias that follows example.com.
@AAAA2001:db8::10The IPv6 version of an A record.
@MX10 mail.example.comMail Exchanger: email for @example.com goes to this server. Lower numbers are tried first.
@TXTv=spf1 mx -allText: free-form data, here an SPF rule that says only the MX server may send this domain's mail.

Every record also carries a TTL, which tells resolvers how many seconds they may cache it. That is why a changed record can take a while to show up everywhere.

Authoritative vs Resolver Roles

DNS software decides who is authoritative for a domain, how quickly queries get answered and how securely resolution happens. Broadly, a DNS server plays one of two roles:

ConceptAuthoritative DNS

Authoritative DNS Servers: The Source of Truth

Plain meaning: The final authority for a domain.

What it holds
It doesn't guess or cache answers from elsewhere; it owns the data.
Picture it
If DNS were a courtroom, authoritative servers are where the final verdict is issued.

Remember: authoritative servers own the answer for their domain.

ConceptRecursive DNS

Recursive Resolvers: The Question Runners

Plain meaning: Works on behalf of clients (laptops, phones).

How it works
It follows referrals from root to authority and returns the answer.
Caching
It caches results to keep the Internet fast.

Remember: resolvers chase and cache the answer; authoritative servers own it.

In modern networks these roles often run on separate servers on purpose: it shrinks the attack surface, scales better and makes monitoring simpler.

DNS software isn't just a naming service; it's a control point for availability, security and trust.

Common DNS Software Engines

ConceptDNS software

BIND (Berkeley Internet Name Domain)

Plain meaning: The most widely deployed DNS server software in the world.

Platform
The industry standard for Linux/UNIX.
Supports
Authoritative zones, recursive resolution, and DNSSEC.

Remember: BIND is the Linux/UNIX standard, and it can do authoritative, recursive and DNSSEC.

ConceptDNS software

Windows DNS Server

Plain meaning: The backbone of name resolution in Windows enterprise environments.

Tied to
Tightly integrated with Active Directory.
What it does
It handles name resolution and publishes the SRV records that clients use to find domain controllers and other Active Directory services.
nslookup -type=SRV _ldap._tcp.dc._msdcs.example.com

Remember: Active Directory clients find domain controllers through SRV records in DNS.

ConceptDNS software

Unbound

Plain meaning: A modern, security-focused recursive DNS resolver designed with simplicity and performance in mind.

Role
Recursive resolver.
Security focus
It emphasizes DNSSEC validation and a minimal attack surface.

Remember: Unbound is a lean, validating recursive resolver.

The Record Set: Digital Signposts

Here’s the set the exam expects you to know cold. Each record type has one job, and you met several of them in the zone file. The phone book shows them together; the table is the full reference.

Loading picture…

Full names, for the exam:

A IPv4 AddressAAAA IPv6 AddressCNAME Canonical NameMX Mail ExchangerNS Name ServerPTR PointerSOA Start of AuthoritySRV ServiceTXT Text

Two jobs the book doesn’t spell out: SRV records locate services such as VoIP or Active Directory domain controllers, and NS records delegate a zone to its authoritative servers.

Exam angle: A is IPv4 and AAAA is IPv6 (four A's for the address that's four times longer). PTR runs the other way, from IP address to name. For MX, the lower priority number is tried first.

Tactical Intel: Email Security (SPF, DKIM, DMARC)

Modern email defense uses TXT records to help receivers spot spoofed mail. SPF lists which servers may send for your domain, DKIM publishes the public key used to check message signatures, and DMARC sets the policy for mail that fails.

Source validationEmail security

SPF (Sender Policy Framework)

Plain meaning: An allow-list of the IP addresses and third-party services (like Microsoft 365) allowed to send mail for your domain.

How it's checked
Receivers check the Return-Path domain's SPF record and can block spoofed mail sent from servers that aren't on the list.
Exam angle
SPF lives in a TXT record and checks the sending server, not the message itself. Nothing about it is encrypted.
example.com.  TXT  "v=spf1 include:spf.protection.outlook.com -all"

Remember: SPF answers "which servers may send for this domain?"

Digital signatureEmail security

DKIM (DomainKeys Identified Mail)

Plain meaning: Adds a cryptographic signature to the message headers.

How it's checked
The receiving server looks up the public key in your DNS and uses it to confirm the message wasn't altered in transit.
The keys
The sending server signs with a private key, and receivers look up the matching public key in a DNS TXT record.
selector1._domainkey.example.com.  TXT  "v=DKIM1; k=rsa; p=MIIBIjANBg..."

Remember: DKIM is the one with the signature.

Policy & reportingEmail security

DMARC (Domain-based Message Authentication, Reporting and Conformance)

Plain meaning: The manager layer. DMARC tells receiving servers what to do with mail that fails (none, quarantine or reject).

How mail passes
A message passes DMARC when SPF or DKIM passes and "aligns" with the domain in the visible From address.
Reporting
It sends reports (RUA) back to you about abuse attempts.
Exam angle
DMARC is the policy and reporting layer. It doesn't sign or encrypt anything.
_dmarc.example.com.  TXT  "v=DMARC1; p=quarantine; rua=mailto:dmarc@example.com"

Remember: DMARC tells receivers what to do when mail fails the checks.

On the jobEmail security

Publish and validate an email policy

Plain meaning: When you set up email authentication, publish records for the exact sending domains and DKIM selectors your mail service uses. A selector tells receivers which DKIM public-key record to look up.

Check it
After any change, check the authoritative answer and a receiver's authentication results.
Where people slip up
They jump straight to a strict reject policy before confirming every legitimate sending service is aligned.
Exam angle
SPF, DKIM and DMARC are named in A+ 220-1201 objective 2.4, and N10-009 objective 3.4 covers the TXT records that carry them.
nslookup -type=TXT _dmarc.example.com

Remember: a TXT record can be perfectly valid and still describe the wrong sender.

The Privacy War: DoH & DoT

  • Plain DNS: cleartext over UDP 53. Your ISP, or anyone snooping on the coffee-shop Wi-Fi, can read every name you look up.
  • DNS over TLS (DoT): a dedicated TLS tunnel on port 853. Easy for network admins to spot, manage or block, with strong encryption.
  • DNS over HTTPS (DoH): rides inside normal HTTPS on port 443, so it looks like web browsing and is hard to filter without breaking web access.
  • Exam angle: both hide the query; neither proves the answer is genuine. That’s DNSSEC’s job, covered in DNS Security.

Toggle the visualizer to watch the same lookup in the clear and inside the tunnel.

DNS_TOOLKIT_V3.0 USER: ADMIN

Pick a command and run it to compare the tools: nslookup gives a quick answer, dig shows the full response with its flags and TTL, and dig +trace walks the delegation from the root down.

TRY COMMANDS: nslookup bbtechtools.com | dig bbtechtools.com | dig +trace bbtechtools.com

Welcome to BB Tech Tools DNS Simulator.
Choose a demonstration below, then select Run selection.

user@admin:~$
MODULE: PROPAGATION MECHANICS

The Waiting Game: Propagation & TTL

  • Time To Live (TTL): set on every record, in seconds. It’s how long a resolver may keep serving its cached copy.
  • Why changes feel slow: resolvers keep handing out the old answer until their copy’s TTL runs out. That wait is what people call propagation.
  • Planning a move? Lower the TTL ahead of time (at least one old TTL before the change), then change the record.
  • Can’t wait on your own PC? Clear its cache: ipconfig /flushdns.

Try it: type a new IP, select Update Record, then reload the browser before the 15-second TTL expires. Reload again after it expires, then repeat the test and use Flush DNS instead of waiting.

Authoritative Server

Connected

HTTP 200 OK

1.1.1.1

Server Response OK

Local DNS Cache Status Cached IP: 1.1.1.1
TTL: 0s
CHALLENGE: CONFIG AUDIT

Zone File Auditor

This zone file has 2 critical errors that would break mail flow or resolution. Select each line you think is wrong. A valid line tells you what it does, so you can rule it out and keep looking.

Errors found: 0 of 2. Select a line to check it.

DNS Security: Protecting the Resolution Path

DNS gets consulted before almost every connection, so it sits at the front door of nearly everything you do online.

DNS was designed when the internet was small, slow and built on trust, and that design choice causes real risk today. Its spot at the front door makes it a prime target for attackers and a powerful control point for defenders.

RedirectionDNS attacks

Cache Poisoning

Plain meaning: Attackers slip forged responses into a recursive resolver's cache.

Generated client hardware reference
Attacker
Generated client hardware reference
User
Generated resolver hardware reference
Resolver
Generated server hardware reference
Genuine
Generated server hardware reference
Malicious
FORGED A RECORD
QUERY: www
CACHED LIE
REDIRECT
Symptom
Once it's poisoned, the resolver quietly sends users to a malicious site even when they typed the correct name.
The fix
DNSSEC is the control that lets a resolver validate the answer.

Remember: users land on a fake site even though they typed the right name? Think DNS cache poisoning, and think DNSSEC.

AvailabilityDNS attacks

DNS Amplification

Plain meaning: A distributed denial-of-service (DDoS) attack that turns open resolvers against a victim.

Generated client hardware reference
Attacker
Generated server hardware reference
Open Resolvers
Generated server hardware reference
Victim
SPOOFED SRC
How it works
The attacker spoofs the victim's IP address and sends small queries to open resolvers. The resolvers send much larger replies to the victim, flooding its network until the bandwidth runs out.
The fix
Turn off open recursion and rate-limit responses.

Remember: amplification abuses open resolvers.

Data exfilDNS attacks

DNS Tunneling

Plain meaning: Malware hides stolen data inside the labels of DNS queries.

Generated client hardware reference
Host
Generated server hardware reference
Firewall
Generated client hardware reference
Attacker
ENCODED IN DNS
PAYLOAD: dXNlcl9wYXNz
Why it works
Because DNS is trusted and rarely blocked, the data "tunnels" out a fragment at a time, disguised as normal lookups to a server the attacker controls.
Failure clue
Long, random-looking subdomains and an unusual number of TXT queries to one domain are classic signs of DNS tunneling.
Check it
Logging DNS queries is how you catch it.

Remember: weird, long subdomains plus lots of TXT queries to one domain means think tunneling.

ConceptDNS security

DNSSEC and encrypted transport

Plain meaning: DNSSEC and encrypted DNS transport solve different problems.

DNSSEC
DNS Security Extensions (DNSSEC) let a validating resolver check that signed DNS data is authentic and unaltered.
DoH and DoT
DNS over HTTPS (DoH) and DNS over TLS (DoT) encrypt the connection to the resolver.
Exam angle
N10-009 objective 3.4 includes all three. On the job, check what your resolver supports and what your policy allows before changing transport.

Remember: the classic mistake is claiming DNSSEC encrypts queries, or that encrypted transport makes every returned record trustworthy.

On the jobSOC

DNS as an Early-Warning System

Plain meaning: In a security operations center (SOC), DNS logs are high-value telemetry.

What analysts hunt for

Algorithm-generated domain names and unusual query frequency.

Why it pays off

Those clues can reveal patient zero long before lateral movement or data exfiltration becomes obvious.

Remember: in the enterprise, DNS isn't just name resolution; it's an early-warning system.

DNS Troubleshooting: Follow the Failure Path

Monday, 8:05 AM. The front desk calls: "The internet is down." You walk over and find Teams connected and a ping to 8.8.8.8 replying just fine, yet every website shows "server not found." The internet isn't down. Name resolution is.

So where do you start?

5places DNS problems almost always live

The client cache, the configured resolver, the recursive path, the authoritative zone, or the record data itself. Good troubleshooting means proving which stage is failing before you change a single setting.

Where a lookup can break

  1. Client cache

    The PC (and its hosts file) may already hold an answer, right or wrong.ipconfig /displaydns

  2. Configured resolver

    The DNS server the PC was told to use has to be reachable and answering.ipconfig /all · nslookup

  3. Recursive path

    The resolver walks root, TLD and authoritative servers; firewalls must pass UDP and TCP 53.dig +trace

  4. Authoritative zone

    Delegation (NS) must point at servers that really host the zone.nslookup -type=NS

  5. Record data

    The record itself must exist, use the right type and hold the right value.nslookup -type=MX / TXT

Work left to right. Prove each stop is healthy before you blame the next one, and change one thing at a time.
Client firstDNS troubleshooting

Prove the Symptom

Plain meaning: Check whether the device can reach a site by IP address but not by name.

IP works, name fails
DNS jumps to the top of the list.
Neither works
The fault is lower in the stack, so go check the link and addressing first.
ping 1.1.1.1
ping example.com

Remember: only the name failing points at DNS.

Resolver checkDNS troubleshooting

Validate the DNS Server

Plain meaning: Confirm which resolver answered, whether the reply is authoritative, and whether the record matches what you expect.

Tools
nslookup, dig or Resolve-DnsName.
On the job
Seeing "Non-authoritative answer" in nslookup is normal. It just means a resolver answered for you instead of the zone's own authoritative server.
C:\> nslookup www.example.com
Server:  dns.google
Address:  8.8.8.8

Non-authoritative answer:
Name:    www.example.com

Remember: "Non-authoritative answer" is normal, not an error.

Cache thinkingDNS troubleshooting

Remember TTL and Stale Data

Plain meaning: If the zone was just changed, a cache may still be serving the older answer.

Check it
Compare the server-side record with the cached one. On Windows, ipconfig /displaydns shows what the client has cached.
The fix
ipconfig /flushdns clears the local cache. Flush it when you have a reason to, not by habit.
C:\> ipconfig /flushdns

Windows IP Configuration

Successfully flushed the DNS Resolver Cache.

Remember: an old answer after a change usually means a cache still holds it until the TTL runs out.

Zone validationDNS troubleshooting

Inspect the Record Set

Plain meaning: Plenty of "DNS is being weird" problems are really configuration errors, and the record set is where you'll find them.

Usual suspects
The wrong record type, a missing trailing dot in zone syntax, a bad MX target or a misused CNAME.
Trailing dot
In a zone file, a name without the final dot is treated as relative, so the zone name gets added to the end of it.
www   IN  CNAME  web.example.com.
@     IN  MX 10  mail.example.com.

Remember: check the records before you blame the server.

Fast Triage Order

  1. Rule out connectivity

    Test local connectivity first, so you don't mistake a routing problem for a DNS failure.

  2. Check the resolver

    Check which resolver the client is configured to use, and query the name against it directly.

  3. Compare the answers

    Compare the answers from internal DNS, public DNS and the authoritative server when it makes sense.

  4. Check TTL and caches

    Review the TTL, any recent record changes, and whether a wrong answer is sitting in a cache.

  5. Inspect the zone

    Inspect the zone for record-type mistakes, delegation errors, or a firewall or security control blocking the reply.

Symptom, cause, check, fix

Here's every DNS symptom the A+ 220-1201 and Network+ N10-009 troubleshooting objectives can throw at you, plus the redirection symptom from A+ 220-1202. Read across each row: the symptom points to a likely cause, the check proves it, and only then do you apply the fix.

DNS troubleshooting: symptom, likely cause, check first, fix
SymptomLikely causeCheck firstFix
Sites open by IP address but not by name ("server not found")A+ 5.5 limited connectivityWrong DNS server setting, or the resolver is down or unreachableipconfig /all to see the DNS servers in use, then nslookup name and nslookup name 8.8.8.8 to compareCorrect the DNS server (DHCP option 006 or the static setting), or restore the resolver
Internet names work, but internal names and file shares failA+ 5.5 limited connectivityA domain-joined PC is pointed at a public resolver that has no internal recordsipconfig /all, then nslookup an internal name against the internal DNS serverPoint the PC back at the internal DNS servers
Domain sign-in fails or "domain not available"A+ 5.5 authentication failuresThe PC can't find the SRV records that locate domain controllersnslookup -type=SRV _ldap._tcp.dc._msdcs.your domainUse the internal DNS servers, then ipconfig /registerdns and sign in again
A changed record still returns the old IP for some usersCached answer that is still within its TTLipconfig /displaydns, then compare nslookup name with the authoritative server's answeripconfig /flushdns on the client and let other caches expire; lower the TTL before planned changes
Every page pauses before loading, then loads normallyA+ 5.5 intermittent internet connectivityThe primary DNS server is slow or down, so the client waits for it to time out before asking the secondarynslookup name against each configured server; ping each DNS serverFix the failing resolver or remove it from the DHCP option or static list
Small lookups work; large answers, DNSSEC or zone transfers time outN10-009 5.3 ACLsA firewall or access control list (ACL) allows UDP 53 but blocks TCP 53dig name TXT and dig +tcp name; firewall logsAllow TCP 53 as well as UDP 53 to the DNS servers
NXDOMAIN ("no such domain") for a name that should existMissing or misspelled record, broken NS delegation, or a zone-file syntax error such as a missing trailing dotdig +trace name; nslookup -type=NS domainAdd or fix the record, fix the delegation at the registrar, and raise the SOA serial after editing the zone
Short names fail but the full name worksNo DNS suffix, so fileserver never becomes fileserver.corp.example.comipconfig /all (Connection-specific DNS Suffix)Supply the suffix with DHCP option 015 or the static suffix list
Email sent to the domain bouncesMX record missing, or pointing at an IP address instead of a hostnamenslookup -type=MX domainPoint the MX at a hostname that has its own A or AAAA record
Outbound mail is rejected or lands in spamSPF, DKIM or DMARC TXT records missing or describing the wrong sendernslookup -type=TXT domain; the receiver's authentication resultsPublish correct SPF, DKIM selector and DMARC records, then re-test
Users land on a fake site even though they typed the right name220-1202 redirectionPoisoned cache, a rogue DNS server handed out by a rogue DHCP server, or an edited hosts fileCompare the DNS servers in ipconfig /all with the approved list; read the hosts file; ipconfig /displaydnsRemove bad hosts entries, restore the right DNS servers, flush caches, enable DNSSEC validation and DHCP snooping, and report it as a security incident
Reverse lookups return no name, so logs show only IPs or mail servers refuse your mailMissing or wrong PTR record in the reverse zonenslookup IP addressCreate or correct the PTR record (in-addr.arpa)
A secondary DNS server keeps serving old recordsThe SOA serial wasn't raised, or zone transfers on TCP 53 are blockeddig domain SOA against the primary and the secondary to compare serialsRaise the serial and allow the zone transfer
Some sites pause a few seconds before loading on dual-stack PCs, then workThe name has an AAAA record but the IPv6 path is broken, so the client waits before falling back to IPv4nslookup -type=AAAA name, then ping -6 name and ping -4 nameFix IPv6 routing or the firewall; remove the AAAA record only if that host truly can't serve IPv6
IPv6 reverse lookups return no nameNo PTR record in the ip6.arpa reverse zone, or the reverse zone isn't delegatednslookup IPv6 address; dig -x IPv6 addressCreate the ip6.arpa zone and PTR record (let the server generate the nibble name)
An IPv6-only network can't reach IPv4-only sites by nameNo DNS64 to synthesize AAAA answers, or no NAT64 gateway to translatenslookup -type=AAAA name against the resolver; look for a 64:ff9b:: answerEnable DNS64 on the resolver and point it at a working NAT64 prefix
Exam angle: "Can ping by IP but not by name" is the classic DNS question, and the best first answer checks the configured DNS server, not the cable or the gateway. N10-009 objective 5.5 expects you to pick nslookup or dig for name problems and ipconfig to read the settings.

Quick check: back to Monday morning. ipconfig /all shows the front desk PC using 192.168.1.250 for DNS, but your servers are .10 and .11. What else on the network could have handed out that address?

BB Mission Check

Time to prove the model sticks. These fourteen questions cover lookup order, server roles, record types, TTL behavior, command output, security clues and DNS on IPv6. Each question gets one pick: a miss is marked wrong, and the debrief shows the right answer and why. Then work nine help desk tickets that put the same ideas on the job.

Part 1: Fourteen quick questions

Final Readiness Check

DNS Resolution Review

Score: 0 / 14
Question 01

What is the most basic job DNS performs for a client?

Question 02

Which server does a client's stub resolver normally ask to obtain a complete DNS answer?

Question 03

Which DNS server type is the source of truth for records in a zone?

Question 04

Which record maps a hostname to an IPv4 address?

Question 05

Which record type tells other systems where to deliver email for a domain?

Question 06

Which record type is most associated with reverse DNS lookups?

Question 07

A DNS record was changed, but some users still get the old IP. What is the likely concept involved?

Question 08

A host can ping 8.8.8.8 but cannot open websites by name. What should you inspect first?

Question 09

Which command style is best for watching DNS delegation from root downward?

Question 10

Which feature validates signed DNS data through a chain of trust?

Question 11

What do root DNS servers primarily do during normal resolution?

Question 12

Which record type usually holds SPF policies and domain-ownership verification codes?

Question 13

Which zone holds the PTR records for IPv6 reverse lookups?

Question 14

A name returns both A and AAAA records. Dual-stack laptops pause a few seconds before the site loads. What's the likely problem?

Part 2: Work the help desk (DNS tickets)

Now put it to work on real tickets. Each ticket reads like a real one: figure out what the evidence rules out, then choose the first move a good tech would make. You get one pick per ticket: a wrong pick is marked wrong, and the notes show the right move and why.

Help Desk Queue: DNS tickets
Follow the evidence before you change settings. Only your first try on each ticket counts toward the score.
INC-00000OpenP2

Loading ticket...

Requester
Department
Category
Assigned to
You (Tier 1)
Message from the user

Your call

Choose your action

Work notes will appear here once you choose an action.
First-try score: 0 / 0

DNS: key takeaways

  • A recursive resolver obtains an answer for the client; authoritative servers publish zone data.
  • A maps a name to IPv4, AAAA to IPv6, CNAME to another name and MX to mail servers.
  • TXT records can publish SPF and other policies; DKIM and DMARC serve distinct email authentication roles.
  • TTL limits how long an answer can remain cached; it does not promise instant worldwide change.
  • DNS commonly uses port 53 over UDP or TCP; truncated replies can require TCP.
  • DNSSEC validates authenticity and integrity, while DoH and DoT encrypt the transport.
  • Compare IP reachability, configured resolver, lookup response and record data to isolate a name-resolution failure.
  • On IPv6, AAAA records carry the address, PTRs live under ip6.arpa, and dual-stack clients fall back to IPv4 when the IPv6 path is broken.

Common mistakes

  • Confusing a resolver with an authoritative server.
  • Expecting immediate change despite cached TTLs.
  • Treating DNSSEC as query encryption.

Study next

Cheat Sheet

The whole lesson on one page. Keep it open while you review, or print it.

Loading cheat sheet…

Loading DNS hierarchy poster…

LAT: 0000
LON: 0000
DEP: 0000