keepcalculator

06 Numbers and Powers

DNS Server: What It Is and How It Works

Card No. 06·41101 · Updated · Standard formula, shown below

Queries per second 50,000.00 q/s
Response time (ms)
20 ms
You entered
You enter
Response time (ms)
You get
Queries per second
Rounding
2 dp

A DNS server is the internet’s address book: it translates the domain names you type (like example.com) into the numeric IP addresses that computers use to route traffic. When you enter a website name, your device asks a DNS server for the matching IP address, and once it gets that address, your browser can connect to the site. This article explains what a DNS server is, how the lookup process works, and why it matters for your everyday browsing.

Formula

This calculator converts a DNS server’s average response time into the maximum number of queries it can handle per second. The formula is:

Queries per second = 1000 / (response time in ms)

Where:

  • Response time (t) – the average time in milliseconds (ms) for one DNS query to receive a reply.
  • Queries per second (qps) – the theoretical maximum number of queries the server can answer in one second if it processes them sequentially.

This is a simple throughput estimate. Real servers handle many queries in parallel, so the actual capacity is much higher, but this gives a baseline for comparison.

Worked Example

Using the default response time of 20 ms:

  1. Convert milliseconds to seconds: 20 ms = 0.02 s
  2. Divide 1 second by 0.02 s: 1 / 0.02 = 50
  3. So the server can handle about 50 queries per second sequentially.

If the response time drops to 10 ms, the throughput doubles to 100 qps; if it rises to 40 ms, it halves to 25 qps.

What a DNS Server Actually Does

Every device on a network—whether it’s a laptop, phone, or server—has a unique numeric address called an IP address (like 192.168.1.1 or 2606:4700:4700::1111). Humans find it much easier to remember names like google.com than long strings of numbers. The Domain Name System (DNS) bridges that gap.

A DNS server is a computer that stores a database of domain names and their corresponding IP addresses. When you type a domain name into your browser, your device sends a query to a DNS server asking, “What is the IP address for this domain?” The server responds with the address, and your browser then connects to that IP to load the website.

There are several types of DNS servers, each with a specific role:

  • Recursive resolver – the first server your device contacts. It handles the query on your behalf, asking other servers if needed.
  • Root name server – the top of the DNS hierarchy. It doesn’t know individual domains but points to the correct top-level domain (TLD) server.
  • TLD name server – manages domains within a specific extension like .com, .org, or .net. It directs to the authoritative server.
  • Authoritative name server – holds the actual DNS records for a specific domain (like the IP address for example.com).

How the DNS Lookup Process Works

When you type a URL and press Enter, a series of steps happens behind the scenes, usually in milliseconds:

  1. Check the local cache – Your operating system and browser keep a temporary list of recently visited domains. If the IP is there, the lookup ends immediately.
  2. Query the recursive resolver – If not cached, your device sends the query to the DNS server configured in your network settings (often your ISP’s server).
  3. Ask the root server – The resolver doesn’t know the IP, so it asks a root server. The root replies with the address of the TLD server for the extension (e.g., .com).
  4. Ask the TLD server – The resolver then asks the TLD server for the domain. The TLD server responds with the address of the authoritative name server for that specific domain.
  5. Ask the authoritative server – Finally, the resolver asks the authoritative server for the exact IP address of the domain.
  6. Return the answer – The resolver sends the IP back to your device, which then connects to the website. The resolver also caches the answer for future queries.

This process is called a recursive query because the resolver does the legwork for you. It’s also why changing your DNS server (like switching to a public DNS service) can sometimes speed up browsing—if the new server has a faster cache or better infrastructure.

Common DNS Records

DNS servers store different types of records, each serving a purpose. The most common ones you’ll encounter:

  • A record – maps a domain to an IPv4 address (e.g., 192.0.2.1).
  • AAAA record – maps a domain to an IPv6 address (e.g., 2001:db8::1).
  • CNAME record – maps a domain to another domain name (alias). For example, www.example.com might point to example.com.
  • MX record – specifies the mail server responsible for receiving email for the domain.
  • TXT record – holds arbitrary text, often used for verification or security (like SPF or DKIM).

When you set up a website, you configure these records with your domain registrar or hosting provider. The DNS server then serves them to anyone who asks.

Why DNS Matters: Speed and Security

DNS is often called the “phonebook of the internet,” but it’s also a critical point for security and performance. Here are a few reasons it matters:

  • Speed – A slow DNS server can add noticeable delay to every website you visit. Using a faster resolver can make browsing feel snappier.
  • Reliability – If your DNS server goes down, you can’t resolve any domain names, even if your internet connection is fine. That’s why many people use redundant DNS servers.
  • Security – DNS can be hijacked to redirect you to malicious sites. DNSSEC (DNS Security Extensions) adds digital signatures to verify responses, and DNS-over-HTTPS (DoH) encrypts queries to prevent eavesdropping.

One common misconception is that DNS is only for websites. In reality, it’s used for email, file transfers, and virtually every internet service that relies on domain names.

How to Choose a DNS Server

Most people use the DNS server provided by their internet service provider (ISP) without thinking about it. But you can change it to a public DNS service, which often offers better speed, reliability, or privacy features. Here are factors to consider:

  • Speed – Some public DNS services have global anycast networks that route your query to the nearest server, reducing latency.
  • Privacy – Some services log your queries; others don’t. Read their privacy policies.
  • Security – Look for services that support DNSSEC and block known malicious domains.
  • Uptime – A reliable server should have near-100% uptime.

To change your DNS server, you typically go into your device’s network settings and replace the automatic DNS with the IP addresses of your chosen service. For example, you might enter 1.1.1.1 and 1.0.0.1 for Cloudflare, or 8.8.8.8 and 8.8.4.4 for Google. These are well-known public DNS addresses, but you should confirm the current ones from the provider’s official documentation.

Common DNS Problems and Troubleshooting

DNS issues often manifest as “server not found” or “DNS_PROBE_FINISHED_NXDOMAIN” errors in your browser. Here are typical causes and fixes:

  • Incorrect DNS settings – Check that your device’s DNS is set to a valid server. You can try switching to a public DNS temporarily.
  • Cache corruption – Your local DNS cache may have stale entries. Flush it using the command ipconfig /flushdns on Windows or sudo dscacheutil -flushcache on macOS.
  • ISP outage – If your ISP’s DNS is down, you might still have internet access but can’t resolve names. Try using a different DNS server.
  • Domain not configured – If you own a domain and it’s not resolving, check that the nameservers at your registrar point to the correct hosting provider and that DNS records are set up.

Most DNS problems are temporary and can be solved by flushing the cache or changing servers. If the issue persists, check your router’s DNS settings as well.

Frequently Asked Questions

What is the difference between a DNS server and a web server?

A DNS server translates domain names into IP addresses, while a web server hosts the actual website content and sends it to your browser. DNS is like a phonebook; the web server is the person you call.

Can I use a DNS server to block ads or malware?

Yes, some public DNS services offer filtering that blocks known ad domains or malicious websites. By using such a service, you can prevent your device from resolving those domains, which effectively blocks the content. However, this is not a substitute for a dedicated ad blocker or antivirus.

Does changing my DNS server make my internet faster?

It can, especially if your ISP’s DNS is slow or overloaded. A faster DNS server reduces the time it takes to resolve domain names, which can speed up the initial connection to websites. However, once the connection is established, the DNS server no longer affects download speeds.

What is DNS propagation and how long does it take?

DNS propagation is the time it takes for changes to your domain’s DNS records to spread across all DNS servers worldwide. It can take anywhere from a few minutes to 48 hours, though most updates happen within a few hours. The delay is due to caching at various levels.

Is it safe to use public DNS servers?

Yes, using a reputable public DNS server is generally safe. They often have better security features than ISP servers, such as DNSSEC validation. However, you should be aware that the provider can see your DNS queries, so review their privacy policy if that concerns you.

What happens if my DNS server goes down?

If your DNS server is unavailable, you won’t be able to access websites by domain name, but you might still reach them by IP address directly. Most devices have a secondary DNS server configured, so they’ll automatically try that one. If both fail, you can manually switch to a public DNS server to restore service.

Related

Formula used
in t | Response time (ms) | ms | 20 | 0 | 10000
out qps | Queries per second | q/s | 1000 / (t / 1000) | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →