What Is DNS and How Does It Work?

DNS (Domain Name System) translates human-readable domain names into IP addresses. Learn how DNS lookups work, what nameservers do, and why DNS matters for every website.

Last updated July 11, 2026

DNS (Domain Name System) is the internet's directory service: it translates human-readable domain names like example.com into the numeric IP addresses computers use to find each other. Every website visit, email delivery, and API call starts with a DNS lookup. Without DNS you would have to memorize addresses like 93.184.216.34 instead of names.

How does a DNS lookup work?

When you type a domain into your browser, a chain of servers cooperates to answer "what IP address is this name?":

  1. Stub resolver. Your device first checks its local cache. If the answer isn't cached, it asks a recursive resolver - usually run by your ISP, or a public one like 8.8.8.8 (Google) or 1.1.1.1 (Cloudflare).
  2. Recursive resolver. If the resolver doesn't have the answer cached, it walks the DNS hierarchy: it asks a root server which servers handle .com, then asks the .com TLD servers which nameservers are authoritative for example.com.
  3. Authoritative nameserver. The domain's own nameservers - the ones you configure when you use a DNS hosting service - return the actual record: "example.com is at 93.184.216.34".
  4. Caching. The resolver caches the answer for the record's TTL (time to live) so the next lookup is instant.

The full walk takes tens of milliseconds; cached answers take under a millisecond. This is why fast, well-distributed authoritative DNS - like an anycast network - makes every first visit to your site noticeably quicker.

What are DNS records?

Authoritative nameservers store your domain's configuration as typed records. The ones you'll use most:

  • A record - maps a name to an IPv4 address (AAAA does the same for IPv6).
  • CNAME record - aliases one name to another name.
  • MX record - tells sending servers where your email should be delivered.
  • TXT record - free-form text used for SPF/DKIM/DMARC email authentication and ownership verification.
  • NS record - delegates the zone to a set of nameservers.

Who runs the DNS for my domain?

Whoever operates the nameservers your domain points to. By default that is often your registrar, but DNS hosting is independent from registration: you can keep the domain where it is and change its nameservers to any provider. ice.domains offers free DNS hosting - unlimited zones and records on a global anycast network, for domains registered anywhere.

Why DNS matters for performance and uptime

DNS is the first step of every connection, so it is both a performance floor and a single point of failure. Slow authoritative servers add latency to every uncached visit; a DNS outage takes down your website, email, and APIs simultaneously, even though the servers behind them are healthy. That's why serious DNS setups use geographically distributed anycast networks, low response times, and sometimes a secondary DNS provider as a backup.

Frequently Asked Questions

DNS stands for Domain Name System. It is the internet's directory service that translates domain names like example.com into the IP addresses computers use to connect to each other.

When DNS fails, browsers cannot resolve domain names into IP addresses, so websites, email, and APIs on that domain become unreachable even though the servers themselves are still running.

Resolving DNS queries is free for end users. Hosting authoritative DNS for your own domain is often paid, but providers like ice.domains offer full-featured free DNS hosting with no record or query limits.

Get free DNS hosting in minutes

Unlimited zones and records on a global anycast network. Works with domains registered anywhere. No credit card required.