What is DNS and what does a DNS server do?

On this page
  1. What DNS does
  2. What a DNS server does
  3. How DNS resolution works
  4. Types of DNS servers involved
  5. DNS resolver
  6. Root name server
  7. TLD name server
  8. Authoritative name server
  9. Primary and secondary DNS servers
  10. Dynamic DNS (DDNS)
  11. Types of DNS queries
  12. Common public DNS providers
  13. Summary

The Domain Name System (DNS) is a fundamental part of how the internet works. It translates human-readable domain names (like example.com) into machine-readable IP addresses (like 192.0.2.1) that computers use to identify each other on the network.

Without DNS, users would need to remember numerical IP addresses instead of easy-to-use domain names.

What DNS does

DNS is responsible for:

  • converting domain names into IP addresses
  • locating the correct server for a website
  • enabling browsers to load websites using URLs

For example, when you type a domain into your browser, DNS finds the correct IP address and connects you to the website.

What a DNS server does

A DNS server is a system that stores and manages DNS records. Its main job is to respond to DNS queries by providing the correct IP address for a domain name.

In simple terms:

  • you enter a website name
  • the DNS server looks it up
  • it returns the matching IP address
  • your browser connects to the website

How DNS resolution works

The process of translating a domain name into an IP address is called DNS resolution. It involves several steps:

  1. The browser sends a request for a domain
  2. A DNS resolver processes the request
  3. The system checks different DNS servers
  4. The correct IP address is returned
  5. The browser loads the website

Types of DNS servers involved

Several types of servers participate in DNS resolution:

DNS resolver

Receives the initial request from the user and starts the lookup process.

Root name server

Directs the query to the correct top-level domain (TLD) server.

TLD name server

Handles domain extensions like .com, .org, or .net.

Authoritative name server

Provides the final and correct IP address for the domain.

Primary and secondary DNS servers

  • Primary DNS server: stores the original DNS zone data for a domain
  • Secondary DNS server: provides a backup copy for redundancy and reliability

This setup improves availability and protects against downtime.

Dynamic DNS (DDNS)

Dynamic DNS automatically updates IP addresses when they change. It is useful for systems where the IP address is not static, such as home networks or small businesses.

Types of DNS queries

There are three main types:

  • Recursive query: the server resolves the full request
  • Iterative query: the server provides the best available answer or redirects
  • Non-recursive query: the answer is already known or cached

Common public DNS providers

Popular DNS services include:

  • Cloudflare DNS
  • Google Public DNS
  • OpenDNS
  • Quad9
  • AdGuard DNS

These providers often improve speed, reliability, and security.

Summary

DNS is a system that translates domain names into IP addresses, making it possible to access websites using simple names instead of numeric addresses. DNS servers handle this translation process, ensuring that browsers can quickly and correctly load websites.

Didn't find an answer?

Our support team is here for you 24/7 – write to us and we will help you sort it out.