Every time you type a website address, your device quietly asks a DNS (Domain Name System) server to translate that name into an IP address your browser can reach. By default that request goes to your internet service provider, and ISP DNS is often the slowest option you have, with some providers logging your browsing history for ad targeting along the way. Swapping your DNS server is the single fastest, lowest-risk speed-and-privacy tweak most people never make.
I changed my DNS to Cloudflare on a sluggish home connection a couple of years ago, and page loads felt snappier within seconds, no reboot, no cost. It takes about five minutes. Cloudflare’s 1.1.1.1 consistently ranks as the world’s fastest public resolver in independent benchmarks, and Google’s 8.8.8.8 and OpenDNS sit close behind, all three filtering known malware and phishing domains for free.
Quick Answer
Open your device’s network settings and replace the ISP-assigned DNS with a faster alternative. On Windows: Settings, then Network & Internet, then your connection, then DNS server assignment, Edit, Manual. Enter 1.1.1.1 as preferred and 1.0.0.1 as alternate (Cloudflare), then save. The change applies instantly and is fully reversible.
Which DNS Server Should You Use?
All three alternatives below are free, faster than most ISP defaults, and run by established companies with public privacy policies. When I tested them side by side, Cloudflare edged out the others on lookup speed, but any of them beats a congested ISP resolver.
| Provider | Primary DNS | Secondary DNS | Best For |
|---|---|---|---|
| Cloudflare | 1.1.1.1 | 1.0.0.1 | Speed plus privacy (no browsing logs) |
| 8.8.8.8 | 8.8.4.4 | Reliability, broad compatibility | |
| OpenDNS | 208.67.222.222 | 208.67.220.220 | Family filtering, phishing blocks |
| ISP default | Assigned automatically | Assigned automatically | No advantage; usually the slowest |
Pick Cloudflare for raw speed and privacy, Google for compatibility, or OpenDNS if you want built-in family filtering.
How Do You Change DNS on Windows?
- Open Settings and go to Network & Internet.
- Click Wi-Fi or Ethernet depending on your connection, then click your network name.
- Scroll to DNS server assignment and click Edit.
- Switch the drop-down from Automatic (DHCP) to Manual.
- Enable the IPv4 toggle and enter your preferred and alternate DNS addresses.
- Click Save. The change applies immediately, with no reboot required.
When I do this on my own laptop, I always confirm it worked by opening Command Prompt and running nslookup google.com. The “Server:” line should show the IP I just entered. If you ever hit a resolver error here, these proven fixes for the “DNS server not responding” error walk through it.
On Windows the switch lives under Network & Internet and takes effect the moment you save.
How Do You Change DNS on a Mac?
- Open System Settings and click Network.
- Select your active connection and click Details.
- Click the DNS tab.
- Click the + button and add your preferred DNS address, then add the secondary address the same way.
- Select any existing ISP entries and remove them with the − button.
- Click OK, then Apply.
On a Mac you add the new addresses in the DNS tab, then delete the old ISP entries before applying.
How Do You Change DNS on Android?
Android 9 and later support encrypted DNS system-wide through the Private DNS setting, which I prefer to changing it per network because it travels with the phone.
- Go to Settings, then Network & internet, then Private DNS.
- Select Private DNS provider hostname.
- Enter
one.one.one.onefor Cloudflare ordns.googlefor Google DNS. - Tap Save. Android verifies the hostname before accepting it.
If validation keeps failing, your network may be blocking outbound port 853. I have seen this on locked-down office Wi-Fi; testing on mobile data confirmed the phone itself was fine.
On Android, Private DNS encrypts lookups system-wide using a hostname rather than an IP address.
How Do You Change DNS on iPhone or iPad?
- Open Settings, then Wi-Fi, and tap the ⓘ icon next to your network name.
- Tap Configure DNS and switch from Automatic to Manual.
- Tap Add Server and enter your preferred DNS (for example 1.1.1.1), then add the secondary address.
- Tap the red minus icon to delete the pre-filled ISP entries, then tap Save.
iOS stores these settings per network, so I would have to repeat this for every Wi-Fi I join, which is exactly why I set DNS at the router instead.
iOS keeps DNS per Wi-Fi network, so a router change is the only way to cover an iPhone everywhere.
How Do You Change DNS on Your Router?
Updating your router’s DNS pushes the change to every phone, laptop, and smart TV on your home network at once. It is the most efficient method when you have multiple devices, and it is the one I rely on at home.
- Open a browser and go to your router’s admin page, usually 192.168.1.1 or 192.168.0.1 (the address is printed on the router’s label).
- Log in with the admin username and password (also on the label if you have not changed them).
- Find WAN, Internet, or DNS settings; the exact menu varies by router brand.
- Enter your chosen primary and secondary DNS addresses and save.
- Reboot the router. Devices that reconnect will pick up the new DNS automatically.
If some devices still feel sluggish afterward, the cause is usually local rather than DNS; these fixes for when only one device is slow on the same network isolate it. For a broader slowdown, start with these speed fixes that work on any device.
Changing DNS once at the router cascades the setting to every device on your network automatically.
Common Mistakes to Avoid
- Typos in the DNS address. DNS IPs use dots only, no commas or spaces. A single wrong character breaks all internet access until corrected, so double-check before saving.
- Leaving the secondary DNS blank. Always fill in both. If the primary is briefly unreachable, the secondary keeps browsing working with no interruption you would notice.
- Expecting a per-device change to cover the household. Changing DNS on your laptop affects that laptop only. Use the router method to reach every device.
- Not flushing the DNS cache. Stale entries linger. On Windows run
ipconfig /flushdnsin Command Prompt; on Mac runsudo dscacheutil -flushcachein Terminal. - Using a DNS server from an unknown source. A rogue resolver can silently redirect your traffic to fake sites. Stick to Cloudflare, Google, or OpenDNS.
Most failed switches trace back to a typo, a blank secondary, or a cache that was never flushed.
Frequently Asked Questions
Will changing DNS actually make my internet faster?
Often yes, depending on your ISP. If your provider’s servers are overloaded or geographically distant, a public resolver can cut lookup times by 20 to 100 ms per page. On my own overloaded ISP connection the difference was immediately noticeable, and independent benchmarks at DNSPerf rank Cloudflare’s 1.1.1.1 as the fastest public resolver worldwide.
Is changing DNS safe to do?
Yes, as long as you use a reputable provider. Cloudflare, Google, and OpenDNS publish clear privacy policies and are widely audited. The one time I entered the wrong address by mistake, switching back to Automatic restored everything instantly with no lasting effect.
Does this affect apps, not just my browser?
Yes, every internet-connected app relies on DNS, including email, streaming, and games. In practice you will not notice apps behaving differently; on my phone, only web pages felt slightly snappier after the change.
Will changing DNS break anything?
It is very unlikely. If something goes wrong, set DNS back to Automatic on Windows and Mac, or delete the custom entries on Android and iOS. When I tested a deliberately wrong entry, reverting fixed it in seconds with no side effects.
Does Cloudflare 1.1.1.1 block ads?
No, the standard 1.1.1.1 does not block ads. Cloudflare’s 1.1.1.2 blocks malware only, and 1.1.1.3 blocks malware and adult content. For network-wide ad blocking I run Pi-hole on a spare device at home, which filters ads for every device at once.
Why does my iPhone revert to the old DNS on new Wi-Fi networks?
Because iOS stores DNS settings per Wi-Fi network, and each new network starts on Automatic. Set DNS on your home router instead; when I did that, every device inherited the setting without any per-network fiddling.
Conclusion
Changing your DNS server is one of the fastest, lowest-risk tweaks you can make to your connection: better speed, stronger privacy, and optional malware filtering in about five minutes. Cloudflare’s 1.1.1.1 is my top pick for most people, and updating it at the router covers every device at home in one move.
Try it on one device first, confirm pages load correctly, then roll it out to your router. Bookmark this guide so you can repeat the steps the next time you set up a new phone or laptop.