User Agents

Web browsers and everyday web tech, explained

DNS Misconfiguration: Are You Using It Wrong?

· 5 min read · How the Web Works

In this article
  1. What DNS Actually Does
  2. Why Default DNS Is Often Suboptimal
  3. How to Check Your Current DNS
  4. Choosing a Better DNS Provider
  5. How to Change Your DNS Settings
  6. Encrypted DNS: What and Why
  7. Common DNS Problems and Fixes
  8. Cost and Performance Considerations
  9. Frequently Asked Questions

Yes, you are probably using DNS wrong—most people never touch their DNS settings, leaving them on default, unencrypted, and potentially slow or unsafe. But fixing it is simpler than you think, and the benefits in speed, privacy, and reliability are substantial.

What DNS Actually Does

DNS (Domain Name System) is the internet's phonebook. When you type a domain like example.com, your device asks a DNS resolver to translate that human-readable name into an IP address like 93.184.216.34—the actual location of the server. This lookup happens for every website, every app, every time you connect. The resolver you use (often your ISP's) can be fast or slow, reliable or flaky, and can even see every domain you visit.

Why Default DNS Is Often Suboptimal

Most people never change their DNS settings, so they use whatever their router or ISP provides. That's not necessarily wrong, but it's rarely optimal. ISP DNS servers can be slow due to poor infrastructure or high load, and they may not be well-maintained. In some cases, ISPs have been known to redirect failed queries to ad-filled pages. Additionally, default DNS is almost always unencrypted, meaning anyone on your network (or your ISP itself) can see which domains you're looking up.

How to Check Your Current DNS

Before changing anything, see what you're using now. On Windows, open a command prompt and type ipconfig /all; look for "DNS Servers" under your active adapter. On macOS, go to System Settings > Network > your connection > Details > DNS. On Linux, run cat /etc/resolv.conf or use nmcli dev show. You'll likely see one or two IP addresses—those are your current resolvers. If they belong to your ISP (often recognizable by their IP ranges), you're using default DNS.

Choosing a Better DNS Provider

There are several well-known public DNS providers that offer faster, more secure resolution. Some of the most popular include:

  • Cloudflare 1.1.1.1 – Known for speed and privacy; supports DNS-over-HTTPS and DNS-over-TLS.
  • Google Public DNS – IPs 8.8.8.8 and 8.8.4.4; reliable with global presence.
  • Quad9 – Blocks malicious domains automatically; good for security.
  • OpenDNS – Offers content filtering options.

When choosing, consider what matters most: speed, privacy, or security. For most users, Cloudflare or Google are safe bets. You can also use tools like DNSPerf to compare speeds in your region.

How to Change Your DNS Settings

You can change DNS at three levels: on your router (affects all devices), on your device (affects only that device), or on your browser (affects only that browser). Changing it on the router is best for whole-home coverage, but requires logging into your router's admin panel. Here's a general guide:

  1. Find your router's IP address (often 192.168.1.1 or 192.168.0.1) and log in with your admin credentials.
  2. Navigate to the WAN or Internet settings section.
  3. Look for DNS settings; change from "Obtain automatically" to "Use the following DNS servers."
  4. Enter the IPs of your chosen provider (e.g., for Cloudflare: 1.1.1.1 and 1.0.0.1).
  5. Save and reboot your router if prompted.

On Windows, you can change DNS per adapter in Network Settings > Change adapter options > Properties > IPv4. On macOS, go to System Settings > Network > your connection > Details > DNS and add the new IPs. On mobile, you can set DNS in Wi-Fi settings or use a private DNS option (like DNS-over-TLS) in Android or iOS.

Encrypted DNS: What and Why

Traditional DNS sends queries in plain text, which means anyone on your network can see what sites you're visiting. Encrypted DNS (DNS-over-HTTPS or DNS-over-TLS) encrypts your queries, preventing eavesdropping and tampering. Many providers support these protocols. You can enable encrypted DNS in your browser (e.g., Firefox and Chrome have built-in options) or at the OS level. On Windows 11, you can set encrypted DNS in the network settings. On Android, you can use Private DNS (set to a provider like dns.quad9.net). On iOS, you can install a configuration profile or use a third-party app.

Common DNS Problems and Fixes

Even with good DNS, you might encounter issues. Here are some common ones:

  • DNS cache corruption – Your device may store outdated DNS records. Flush the cache: on Windows, ipconfig /flushdns; on macOS, sudo dscacheutil -flushcache; on Linux, sudo systemd-resolve --flush-caches.
  • Slow resolution – If your DNS is slow, try a different provider or check if your router's DNS is set correctly.
  • DNS leaks – When using a VPN, your DNS queries might still go through your ISP. Use a VPN with built-in DNS protection or manually set DNS to a secure provider.
  • Wrong IP addresses – If a website doesn't load, try using a different DNS provider to rule out a bad record.

Cost and Performance Considerations

Switching DNS providers is free—all major public DNS services are no-cost. The performance impact can be significant: a faster DNS resolver can shave milliseconds off every lookup, which adds up over a day of browsing. However, the difference is usually noticeable only if your ISP's DNS is particularly slow. For most users, the biggest benefit is privacy (not having your ISP track your browsing) and reliability (public DNS providers often have better uptime).

Frequently Asked Questions

Will changing DNS speed up my internet?

It can, but only if your current DNS is slow. DNS lookups are just one part of loading a page; the rest is your connection speed and the server's response time. In most cases, the speed improvement is minimal (a few milliseconds), but it can be more noticeable if your ISP's DNS is overloaded.

Is it safe to use public DNS like 1.1.1.1?

Yes, it's safe. These services are run by reputable companies that have clear privacy policies. They don't sell your browsing history, and they offer encrypted options. However, you're trusting them with your DNS queries, so choose a provider you trust.

Can I use different DNS for different devices?

Absolutely. You can set one DNS on your router and a different one on your laptop. This is useful if you want to filter content on certain devices or if you have a device that needs specific DNS settings.

What is the difference between DNS-over-HTTPS and DNS-over-TLS?

Both encrypt your DNS queries, but they use different protocols. DNS-over-HTTPS (DoH) runs over the HTTPS protocol (port 443), making it harder to block. DNS-over-TLS (DoT) uses a dedicated TLS connection on port 853. DoH is more common in browsers, while DoT is often used at the OS level.

Do I need to restart my router after changing DNS?

Not always, but it's a good idea. Some routers apply changes immediately, but others need a reboot to clear the old DNS settings. If you don't restart and still see the old DNS, try rebooting.