Skills / Networking fundamentals / DNS: the internet's address book
Networking fundamentals, lesson 3 of 8
DNS: the internet's address book
People remember names; computers route by numbers. DNS (the Domain Name System) translates domain names such as learnofficially.com into IP addresses.
What happens when you type a web address:
- Your device checks whether it already knows the answer (a cached result from earlier)
- If not, it asks a DNS resolver, usually run by your internet provider or a public service
- The resolver asks the root servers, which point it to the servers for the ending, such as
.com - The
.comservers point to the domain's own authoritative name servers - Those servers give the final answer: the IP address
- The answer is cached for a set time (the TTL, time to live), so the next lookup is instant
DNS record types you will set up for clients:
- A: name to IPv4 address. AAAA: name to IPv6 address
- CNAME: an alias pointing one name at another, such as
wwwpointing to the main domain - MX: which servers receive email for the domain
- TXT: text used for verification and email security (SPF, DKIM and DMARC records live here)
- NS: which name servers are in charge of the domain
Why changes "take time". After you change a record, resolvers keep the old answer until its TTL runs out. Lower the TTL a day before a planned move so the change spreads quickly.
A classic support truth: when "the internet is down" but some things work, check DNS. You can test it with nslookup learnofficially.com, or by trying to reach a site by its IP address directly.
Try it: Run nslookup (or dig) for a website you use. Write down the IP address it returns. Then look up its MX records and note which company handles its email.
The tutor gives hints, not finished answers. Log in to use it.