Networking · 6 min read · 30 November 2026
What Is DNS? How the Domain Name System Works, Step by Step
DNS turns names like navijin.com into IP addresses. How a lookup works step by step, the main record types, caching and TTL, and DNS for business security.
DNS (Domain Name System) is the internet's directory: it translates names that people use, such as www.navijin.com, into the IP addresses that computers use to connect. Almost every connection, from opening a website to sending email, starts with a DNS lookup.
How a DNS lookup works
- Your device asks its DNS resolver, usually the gateway, an internal server or your provider's server, for the address of a name.
- If the resolver has the answer cached, it replies immediately.
- If not, it asks a root server, which points to the servers for the top-level domain (for example .com).
- The top-level domain servers point to the domain's authoritative name servers.
- The authoritative server returns the record, and the resolver caches it for the time set by the record's TTL (time to live).
This usually takes a few milliseconds. DNS normally uses port 53 over UDP, with TCP for larger answers; encrypted variants are DNS over TLS and DNS over HTTPS.
Common record types
| Record | What it holds |
|---|---|
| A | An IPv4 address for a name |
| AAAA | An IPv6 address for a name |
| CNAME | An alias that points one name to another |
| MX | The mail servers that receive email for the domain |
| TXT | Text used for verification and email security (SPF, DKIM, DMARC) |
| PTR | Reverse lookup: the name for an IP address |
| NS | The authoritative name servers for the domain |
DNS inside a business network
- Internal names: an internal DNS server resolves servers, printers and NVRs by name, and is required by directory services such as Active Directory.
- Security filtering: blocking known malicious and phishing domains at the DNS level stops many attacks before a connection is made. See DNS filtering.
- Handing out the resolver: devices learn which DNS server to use from DHCP, so change it in one place.
- Changes take time: after you change a record, old answers can stay cached until their TTL expires. Lower the TTL a day before a planned move.
Common DNS problems
If websites open by IP address but not by name, the problem is DNS: check the resolver address the device received, whether the gateway can reach it, and whether a firewall blocks port 53. A secure internet gateway can act as the local resolver and apply filtering for the whole site.
FAQ
Frequently asked questions
What does DNS stand for?
Domain Name System. It translates human-readable names such as www.navijin.com into the IP addresses computers use to connect.
What is a DNS resolver?
The server your device asks to look up names. It queries other DNS servers on your behalf and caches the answers. It is usually provided by your gateway, an internal server or your internet provider.
How long do DNS changes take?
Until cached copies expire, which is set by the record's TTL. With a TTL of one hour, most users see the change within an hour; some caches can take longer.
Can DNS improve security?
Yes. DNS filtering blocks connections to known malicious, phishing and unwanted domains for every device that uses your resolver.
Related
Keep reading
Bandwidth is capacity, throughput is what you actually get, latency is delay. How they differ, why speed tests fall short, and how to measure each properly.
Read more →Static vs Dynamic IP Address: Which Devices Need Which, and WhyStatic vs dynamic IP addresses on your LAN and from your internet provider: what each means, which devices need a fixed address, and a simple address plan.
Read more →The OSI Model Explained: 7 Layers With Real Network ExamplesThe seven OSI layers in plain words, with the devices and protocols that work at each one, how they map to TCP/IP, and how to use the model to troubleshoot.
Read more →Ideal Network Architecture for Small and Medium BusinessesRead more →Need help designing your network?
Navijin engineers provide free design consultations, bills of materials and quotations for business projects.