What is a DNS server? It’s the internet’s address book. When you type a name like google.com, a DNS server looks up the matching IP address so your device knows where to connect. Every time you open a website or an app, a DNS lookup happens first, usually in a few milliseconds. This guide explains how DNS works, which DNS server you’re using now, and when it’s worth changing it.

How DNS works, step by step
- You type
example.comin your browser. - Your device asks its DNS server (usually your router, which asks your internet provider) for the IP address.
- If the answer isn’t already cached, the DNS server asks other servers on the internet until it finds the IP address.
- It sends the IP address back, for example
93.184.215.14, and your browser connects to it.
Answers are saved (cached) for a while, so the next visit to the same site skips most of these steps.
Which DNS server am I using?
By default, your devices use the DNS server your router hands out, and the router usually forwards requests to your internet provider’s DNS. To check on Windows, open Command Prompt and type ipconfig /all, then look for DNS Servers. On a Mac, go to System Settings → Network → your connection → Details → DNS.
Popular public DNS servers
| Provider | Primary | Secondary | Known for |
|---|---|---|---|
| Cloudflare | 1.1.1.1 | 1.0.0.1 | Speed and privacy |
| Google Public DNS | 8.8.8.8 | 8.8.4.4 | Reliability |
| Quad9 | 9.9.9.9 | 149.112.112.112 | Blocks known malicious sites |
| OpenDNS (Cisco) | 208.67.222.222 | 208.67.220.220 | Optional content filtering |
For a comparison of speed and features, see the best DNS servers for speed.
Does changing DNS make the internet faster?
It can make pages start loading a little faster, because lookups get quicker, but it doesn’t raise your download speed in Mbps. A speed test measures how fast data moves after the connection is made, so a new DNS server won’t change your speed test result. Changing DNS is most noticeable when your provider’s DNS is slow or unreliable.
Other reasons to change your DNS server
- Reliability: if sites sometimes fail to load while your connection is up, a slow or failing DNS server is a common cause.
- Security: Quad9 and Cloudflare’s 1.1.1.2 block known malware and phishing domains.
- Family filtering: Cloudflare 1.1.1.3 and OpenDNS FamilyShield block adult content.
- Privacy: encrypted DNS (DNS over HTTPS or TLS) stops others on the network from seeing which sites you look up.
Common DNS problems
- “DNS server not responding” / DNS_PROBE errors: restart the router, then try a public DNS server such as 1.1.1.1 or 8.8.8.8.
- A site loads on mobile data but not on WiFi: clear the DNS cache. On Windows run
ipconfig /flushdns. - Everything is slow to start loading: test another DNS server and compare.
To check whether the problem is DNS or the connection itself, ping an IP address and a name. Our ping command guide shows how.
Frequently asked questions
Is it safe to change my DNS server?
Yes. Well-known public DNS services are safe to use, and you can switch back to automatic settings at any time.
What is the best DNS server?
For most people, Cloudflare (1.1.1.1) or Google (8.8.8.8) are fast and reliable. Choose Quad9 if you want malware blocking.
Should I change DNS on my device or my router?
Changing it on the router applies to every device at home; changing it on one device affects only that device.