What is DNS and how does the internet’s naming system work?
DNS (Domain Name System) is one of the internet’s core technologies: it is what makes the web easy, and indeed possible, for people to use. Without it, we would have to memorise complicated strings of numbers to visit websites.
In this article I go through what DNS is, how a DNS lookup works and why security matters in name services.
What is DNS? The internet’s phone book explained
At its simplest, DNS works as the internet’s phone book. Computers and servers identify each other on the network by IP addresses, which are long strings of numbers (e.g. 185.15.59.224). People, on the other hand, find it easier to remember readable names such as google.com or wikipedia.org.
The system acts as an interpreter between these two worlds:
“DNS is the internet’s interpreter: computers communicate in numbers (IP addresses), people in names (domain names). DNS translates one into the other automatically.”
How does a DNS lookup work, step by step?
When you type a web address into your browser, a multi-step DNS lookup starts in the background, and it usually takes just milliseconds. The lookup works its way down a hierarchy like this:
- Cache check: the device first checks whether the answer is already in its own cache. If it is, the page loads straight away without a new lookup.
- Resolver: if the address isn’t found on the device, the request goes to your internet provider’s resolver. The resolver acts as a “librarian” that looks up the answer on the user’s behalf.
- Root server: the resolver first asks a root server, which points it to the server of the right top-level domain (e.g. .fi).
- TLD server (Top Level Domain): the top-level domain server tells the resolver which organisation manages the domain in question.
- Authoritative name server: the lookup ends at the authoritative name server. This is the final “data bank”, which gives the exact IP address of the domain.
The most common DNS records and what they mean
A domain isn’t just a single address: it holds different “compartments”, known as DNS records, for different purposes. Here are the most important ones:
- A record: the cornerstone of DNS, which connects a domain directly to an IPv4 address.
- AAAA record: connects the name to a newer, longer IPv6 address.
- CNAME record: works as an alias. It points one address to another (e.g. www.yoursite.com is pointed to yoursite.com).
- MX record: defines the route email takes and sends messages to the right mail server.
- TXT record: holds information in text form, often used to verify domain ownership and email security (e.g. SPF and DKIM).
When you register a domain through Tuonetti, you manage its records in DNS management, and until you point it at your own website it waits in domain parking.
DNS security and privacy (DNSSEC, DoH and DoT)
The original DNS protocol was unencrypted, which has left it open to various attacks. Today its security is improved with several technologies.
The most common threats
Threats on the network include denial-of-service attacks (DDoS) and cache poisoning. In cache poisoning, an attacker feeds forged data into the cache, so users are sent to a scam site instead of the real one without noticing.
Solutions and protection
- DNSSEC: works as a digital seal. It confirms cryptographically that the DNS answer you get comes from the right source and hasn’t been altered on the way.
- DoH and DoT (privacy): traditional DNS queries travel across the network in plain text, so they can be snooped on. To improve privacy, DNS over HTTPS (DoH) and DNS over TLS (DoT) were developed. They encrypt the traffic and hide your browsing history from outsiders.
Why and how should you change your DNS server?
Most people use their internet provider’s default settings. Changing your DNS server to a third-party service can, however, bring significant benefits. Popular options include Cloudflare (1.1.1.1), Google Public DNS (8.8.8.8) and OpenDNS.
The benefits of switching:
- Speed: global DNS networks are often optimised and can be faster than an internet provider’s congested local servers.
- Reliability: switching means fewer outages when your provider’s own name service goes down.
- Getting round censorship: using another server can help you get round sites being blocked by your internet provider.
Frequently asked questions
What is a resolver and how is it different from an authoritative name server?
A resolver is the “customer service agent” that takes the query from the user’s device and finds the answer by asking other servers. An authoritative name server is the “data bank” that holds the domain’s official information.
What happens if a DNS server doesn’t respond?
If the name server doesn’t respond, the browser can’t find the website’s IP address and the page won’t load. When this happens, devices often try a secondary name server.
Are DNS queries encrypted?
Traditionally, DNS queries travel across the network unencrypted. To improve privacy, the DNS over TLS (DoT) and DNS over HTTPS (DoH) protocols were developed to encrypt the traffic.
What is TTL and how does it affect changes?
TTL (Time To Live) tells how long, in seconds, DNS information is kept in a cache. If you change your website’s IP address, users only see the change once the old TTL has run out.



