How to Change Your DNS Server for Faster, Safer Browsing on Any Device

Change your DNS server in 5 minutes to browse faster and block malware — works on Windows, Mac, Android, iPhone, and any home router. Free and fully reversible.

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’s servers — and ISP DNS is often the slowest option available, with some providers logging your browsing history for ad targeting in the process.

Switching to a faster, privacy-focused DNS server takes about five minutes and costs nothing. Cloudflare’s 1.1.1.1 consistently ranks as the world’s fastest public DNS resolver in independent benchmarks, and Google’s 8.8.8.8 and OpenDNS are close behind — all three filter known malware and phishing domains at no charge.

Quick Answer

Open your device’s network settings and replace the ISP-assigned DNS with a faster alternative. On Windows: Settings → Network & Internet → your connection → DNS server assignment → Edit → Manual, then enter 1.1.1.1 as preferred and 1.0.0.1 as alternate (Cloudflare), then save. The sections below cover Mac, Android, iPhone, and whole-home router changes.

Which DNS Server Should You Use?

All three alternatives below are free, faster than most ISP defaults, and maintained by established companies with public privacy policies.

Provider Primary DNS Secondary DNS Best For
Cloudflare 1.1.1.1 1.0.0.1 Speed + privacy (no browsing logs)
Google 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

How to Change DNS on Windows

  1. Open Settings and go to Network & Internet.
  2. Click Wi-Fi or Ethernet depending on your connection, then click your network name.
  3. Scroll to DNS server assignment and click Edit.
  4. Switch the drop-down from Automatic (DHCP) to Manual.
  5. Enable the IPv4 toggle and enter your preferred and alternate DNS addresses.
  6. Click Save. The change applies immediately — no reboot required.

Pro tip: Confirm the switch worked by opening Command Prompt and running nslookup google.com. The “Server:” line should show the IP you entered.

How to Change DNS on Mac

  1. Open System Settings and click Network.
  2. Select your active connection and click Details.
  3. Click the DNS tab.
  4. Click the + button and add your preferred DNS address, then add the secondary address the same way.
  5. Select any existing ISP entries and remove them with the button.
  6. Click OK, then Apply.

How to Change DNS on Android

Android 9 and later support encrypted DNS system-wide via the Private DNS setting — more secure than changing it per network.

  1. Go to Settings → Network & internet → Private DNS.
  2. Select Private DNS provider hostname.
  3. Enter one.one.one.one for Cloudflare or dns.google for Google DNS.
  4. Tap Save. Android verifies the hostname before accepting it.

Troubleshooting tip: If validation keeps failing, your network may be blocking outbound port 853. Try on a different Wi-Fi network or temporarily switch to mobile data to test.

How to Change DNS on iPhone or iPad

  1. Open Settings → Wi-Fi and tap the icon next to your network name.
  2. Tap Configure DNS and switch from Automatic to Manual.
  3. Tap Add Server and enter your preferred DNS (e.g., 1.1.1.1), then add the secondary address.
  4. Tap the red minus icon to delete the pre-filled ISP entries, then tap Save.

iOS stores these settings per network, so you’d need to repeat this for each Wi-Fi you join — or change DNS at the router level once to cover your whole home automatically.

Change DNS on Your Router (Covers Every Device at Once)

Updating your router’s DNS setting pushes the change to every phone, laptop, and smart TV on your home network. It’s the most efficient method if you have multiple devices.

  1. 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).
  2. Log in with the admin username and password (also on the label if you haven’t changed them).
  3. Find WAN, Internet, or DNS settings — the exact menu varies by router brand.
  4. Enter your chosen primary and secondary DNS addresses and save.
  5. Reboot the router. Devices that reconnect will pick up the new DNS automatically.

If some devices still feel slow after the switch, see these targeted fixes for when one device is slower than others on the same network.

Common Mistakes to Avoid

  • Typos in the DNS address. DNS IPs use dots only — no commas, no spaces. A single-character error breaks all internet access until corrected. Double-check before saving.
  • Leaving the secondary DNS blank. Always fill in both addresses. If the primary is temporarily unreachable, the secondary keeps browsing working without any interruption you’d notice.
  • Expecting a per-device change to affect the whole household. Changing DNS on your laptop affects your laptop only. Use the router method to cover every device at home.
  • Not flushing the DNS cache after switching. Stale entries can linger. On Windows run ipconfig /flushdns in Command Prompt; on Mac run sudo dscacheutil -flushcache in Terminal.
  • Using DNS servers from an unknown source. A rogue DNS provider can silently redirect your traffic to fake sites. Stick to Cloudflare, Google, or OpenDNS — and pair it with knowing how to verify whether a website is genuinely safe.

Frequently Asked Questions

Will changing DNS actually make my internet faster?
It depends on your ISP. If your provider’s servers are overloaded or geographically distant, switching to Cloudflare or Google DNS can reduce lookup times by 20–100 ms per page. Independent benchmarks at DNSPerf consistently rank Cloudflare’s 1.1.1.1 as the fastest public resolver worldwide.

Is this safe to do?
Yes — as long as you use a reputable provider. Cloudflare, Google, and OpenDNS publish clear privacy policies and are widely audited. Avoid entering DNS IPs from unknown sources, as a malicious resolver could redirect your traffic to convincing-looking fake sites.

Does this affect apps, not just my browser?
Yes. Every app that connects to the internet relies on DNS — email, streaming, games, and more. In practice, most users notice no change in app behaviour, only that pages feel slightly snappier overall.

Will this break anything?
Unlikely. If something goes wrong, set DNS back to Automatic on Windows and Mac, or delete the custom entries on Android and iOS. Everything reverts instantly, with no lasting side effects.

Does Cloudflare 1.1.1.1 block ads?
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, look into Pi-hole running on a local device. Also worth doing: auditing your browser extensions, which are a common hidden source of ads and slowdowns.

Why does my iPhone revert to the old DNS on new Wi-Fi networks?
iOS stores DNS settings per Wi-Fi network. Each new network starts with Automatic DNS. Set DNS on your home router instead and every device inherits the setting without per-network configuration.

Conclusion

Changing your DNS server is one of the fastest, lowest-risk tweaks you can make to your internet connection — better speed, stronger privacy, and optional malware filtering in about five minutes. Cloudflare’s 1.1.1.1 is the top choice for most users; update it at the router level to cover every device at home without touching each one individually.

Try the change on one device first, confirm pages load correctly, then roll it out to your router once you’re satisfied with the results.