Jump to

    Lessons / Lesson 6, Gibson & Shelley, Ch. 3

    DNS: the internet’s address book

    DNS turns names people can remember, like eli10cyber.com, into the number addresses computers actually use.

    Poster: DNS. A child wondering what eli10cyber.com is, a librarian walking between ROOT and .com shelves, the librarian handing over 203.0.113.5, and the librarian refusing to give out the address of a bad site.

    Tap any panel to explore it.

    Like you’re 10

    You know your friend’s name, but to send them a letter you need their house number. Computers are the same: you type a name like eli10cyber.com, but to connect, your computer needs a number (an IP address).

    DNS is the internet’s address book. Your computer asks, “Where does eli10cyber.com live?” and DNS answers with the number.

    There isn’t one giant book. It’s more like a library: the librarian (called a resolver) asks the main desk where the .com books are, then asks the .com shelf where eli10cyber.com is, then writes the answer down so next time it can remember it instantly.

    Grown-up version

    DNS (Domain Name System) is a distributed, hierarchical database that maps domain names to IP addresses and other information. A recursive resolver answers your query by asking, in turn, the root servers, the top-level domain servers (like .com) and the domain’s authoritative servers. It then caches the answer for as long as the record’s time-to-live (TTL) allows.

    Record types to know:

    RecordPurpose
    AName to IPv4 address
    AAAAName to IPv6 address
    CNAMEAlias from one name to another
    MXWhere to deliver email for the domain
    TXTFree text, used for email security (SPF, DKIM, DMARC) and proving domain ownership
    NSWhich servers are authoritative for the domain

    Attacks to know: DNS spoofing and cache poisoning (forged answers, fixed by DNSSEC), domain hijacking (taking over the domain’s registrar account), DNS tunnelling (smuggling data out inside DNS queries), and DDoS against DNS providers.

    Privacy: plain DNS is unencrypted on port 53, so anyone on the network can see which sites you look up. DNS over HTTPS (DoH) and DNS over TLS (DoT) encrypt the lookups.

    A real-world example

    In October 2016, a botnet of hacked cameras and home routers flooded the DNS provider Dyn with traffic. Dyn’s servers couldn’t answer, so for hours millions of people couldn’t reach major sites like Twitter, Netflix and Reddit, even though those sites were running perfectly. Nobody could look up their addresses.

    Why a buyer cares

    • The risk it reduces: almost all malware has to look up a domain to phone home, and almost every phishing link needs a lookup to load. Blocking bad lookups stops attacks very early. DNS outages also take a company offline.
    • Who owns it at a company: the network team runs it. Security teams increasingly use it as a control.
    • What gets bought: protective DNS that blocks malicious domains (Cisco Umbrella, Cloudflare Gateway, Infoblox, Akamai). In the UK, the NCSC runs a protective DNS service for the public sector. Also managed DNS for resilience, and DDI platforms.
    • A good discovery question: “If a laptop on your network tried to reach a known malware domain right now, what would stop it?”

    The one thing to remember

    DNS turns names into numbers. Because every connection starts with it, it’s both a single point of failure and one of the best places to block attacks.

    Buyer score

    7/10

    Every connection starts with a DNS lookup, so blocking bad lookups is one of the cheapest, widest security controls a company can buy.

    The pitch

    Protective DNS stops users reaching malicious sites before any connection is even made.

    Share on LinkedIn
    BudgetIs there a product category companies buy for this?
    2/2.5
    PainDoes it cause breaches or outages people have heard of?
    2/2.5
    PressureDo regulators, insurers or auditors demand it?
    1.5/2.5
    OwnerIs there a clear buyer who is judged on it?
    1.5/2.5

    See every topic ranked by buyer score

    Check yourself

    3 quick questions. Get them all right and this lesson is marked as learned.

    1. 1Which DNS record maps a name to an IPv6 address?

    2. 2Which DNS record says where to deliver email for a domain?

    3. 3What does protective DNS do?

    Revision cards

    For later: answer out loud first, then check.

    1What does a DNS A record do, and what does an AAAA record do?

    An A record maps a name to an IPv4 address. An AAAA record maps a name to an IPv6 address.

    2Which DNS record tells the world where to deliver email for a domain?

    The MX (mail exchanger) record.

    3What is a DNS resolver?

    The server that does the lookup work for you, asking other DNS servers in turn and caching the answers. Your internet provider or company usually runs one.

    4Which port does DNS use?

    Port 53, mainly over UDP, with TCP for larger answers. Encrypted DNS uses 853 (DNS over TLS) or 443 (DNS over HTTPS).

    5What is protective DNS?

    A resolver that refuses to answer lookups for known malicious domains, so users and malware can’t reach them.

    Your progress is saved on this device only.

    Tap the image to zoom

    1Names vs Numbers

    People remember names, computers connect to numbers. DNS translates one into the other.

    Swipe for panel 2 →

    2The Librarian

    A recursive resolver asks the root servers, then the top-level domain servers, then the domain’s own servers.

    Swipe for panel 3 →

    3The Answer

    The answer is a DNS record: an A record for IPv4, AAAA for IPv6. The resolver caches it for next time.

    Swipe for panel 4 →

    4Protective DNS

    Protective DNS refuses to look up known malicious domains, stopping malware and phishing links early.