DNS · 6 min read · By WhatsMyIPv4 Team · Updated June 24, 2026

How to Change Your DNS Server

Changing your DNS server is one of the quickest free tweaks you can make. It can speed up the first connection to new sites and keep your browsing out of your ISP's logs.

The two most popular free choices are Cloudflare (1.1.1.1 and 1.0.0.1) and Google (8.8.8.8 and 8.8.4.4). Set it on one device, or set it on your router to cover everything at once.

Advertisement

Windows

  1. Open Settings, then Network & Internet, then your connection's properties.
  2. Find 'DNS server assignment' and choose Edit, then Manual.
  3. Turn on IPv4 and enter 1.1.1.1 as preferred and 1.0.0.1 as alternate.
  4. Save, then flush your DNS cache so the change takes effect.

macOS

  1. Open System Settings, then Network, and select your active connection.
  2. Click Details, then DNS.
  3. Remove the existing entries and add 1.1.1.1 and 1.0.0.1.
  4. Click OK, then Apply.

Your router (covers every device)

  1. Open your router's settings by entering its IP in a browser (often 192.168.1.1).
  2. Sign in, then find the DNS or WAN settings.
  3. Replace the DNS servers with 1.1.1.1 and 1.0.0.1.
  4. Save and reboot the router.

iPhone and Android

  • iPhone: Settings, Wi-Fi, tap your network, Configure DNS, switch to Manual, add 1.1.1.1.
  • Android: Settings, Network & internet, Private DNS, choose 'Private DNS provider hostname' and enter one.one.one.one for Cloudflare.

Frequently asked questions

Which is better, Cloudflare or Google?

Both are fast and reliable. Cloudflare leans harder on privacy in its public commitments. Try each and keep whichever feels quicker for you.

How do I undo the change?

Go back to the same setting and switch DNS assignment back to Automatic. Your ISP's default returns right away.