Every time you open a website, your device first asks a DNS server to translate the name into a numeric IP address. This happens in milliseconds, but a slow or unreliable DNS server can make browsing feel slow, and some DNS servers also add useful security filtering. Changing it is free, reversible and takes about five minutes.
What DNS does, in plain language
Think of DNS as the internet’s phone book. You type a name such as example.com, and DNS returns the number computers actually use to connect. By default your device uses the DNS server chosen by your internet provider. It usually works, but it may be slower than alternatives, may log your queries, or may not block known malicious domains.
Popular public DNS providers
- Cloudflare: 1.1.1.1 and 1.0.0.1. Known for speed and a strong privacy focus. A family-filtering version, 1.1.1.3, blocks malware and adult content.
- Google Public DNS: 8.8.8.8 and 8.8.4.4. Very reliable and widely used.
- Quad9: 9.9.9.9 and 149.112.112.112. Blocks known malicious domains by default.
- OpenDNS: 208.67.222.222 and 208.67.220.220. Offers optional content filtering controls.
Each provider lists the primary and secondary addresses. Always enter both so you have a backup if one fails.
Which one should you pick?
If you want pure speed, test a few. If you want extra protection against phishing and malware sites, Quad9 is a solid choice. If you have children at home, Cloudflare’s family servers or OpenDNS filtering can help. None of them is perfect for everyone, so pick one and re-evaluate after a week.
How to change DNS on Windows 11
- Open Settings and go to Network & internet.
- Choose Wi-Fi or Ethernet, then your connection’s properties.
- Next to DNS server assignment, click Edit and switch to Manual.
- Turn on IPv4, enter the preferred and alternate DNS addresses, and click Save.
How to change DNS on macOS
- Open System Settings, then Network.
- Select your connection and click Details.
- Open the DNS tab, click the plus button and add the new addresses.
- Drag them above any existing servers and click OK.
How to change DNS on Android and iPhone
On Android 9 and later, open Settings, search for Private DNS, choose the private DNS provider hostname option and enter a hostname such as one.one.one.one (Cloudflare), dns.google (Google) or dns.quad9.net (Quad9). On iPhone, open Settings, Wi-Fi, tap the information icon next to your network, choose Configure DNS, select Manual and add the addresses.
The better option: change it on your router
If you change DNS in your router’s settings, every device on your network benefits, including smart TVs and consoles. Look for a DNS or Internet settings page in your router’s admin panel and enter the new addresses there. Restart the router afterwards.
Check that it works
Visit your provider’s test page (for example 1.1.1.1/help for Cloudflare) or open Command Prompt and type nslookup example.com to see which server answered. If pages stop loading after the change, revert to automatic settings.
Privacy notes
DNS queries show which domains you visit. Switching providers moves that trust from your internet provider to a different company, so read the provider’s privacy policy. Using DNS over HTTPS or DNS over TLS, available in modern browsers and operating systems, encrypts those queries so other people on your network cannot read them.
Troubleshooting
- If a site fails to load, flush the DNS cache with
ipconfig /flushdnson Windows. - If a work or school network needs internal addresses, switch back to automatic DNS while connected to it.
- If a filtered resolver blocks a site you trust, try another resolver or report the false positive to the provider.
A small DNS change will not double your download speed, but it often makes pages start loading noticeably faster and adds a layer of protection against malicious sites. For more ways to get a faster connection, read 12 practical fixes.