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

  1. Your device asks its DNS resolver, usually the gateway, an internal server or your provider's server, for the address of a name.
  2. If the resolver has the answer cached, it replies immediately.
  3. If not, it asks a root server, which points to the servers for the top-level domain (for example .com).
  4. The top-level domain servers point to the domain's authoritative name servers.
  5. 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

RecordWhat it holds
AAn IPv4 address for a name
AAAAAn IPv6 address for a name
CNAMEAn alias that points one name to another
MXThe mail servers that receive email for the domain
TXTText used for verification and email security (SPF, DKIM, DMARC)
PTRReverse lookup: the name for an IP address
NSThe 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.

Need help designing your network?

Navijin engineers provide free design consultations, bills of materials and quotations for business projects.