Skip to content

How to Change DNS on Windows, Mac, iPhone and Android

How to change your DNS server on Windows 11 and 10, Mac, iPhone and Android, which addresses to use (1.1.1.1, 8.8.8.8), and how to undo it.

Want to change your DNS server? It takes a minute on any device. This guide shows how to change DNS on Windows 11 and 10, Mac, iPhone and Android, which addresses to use, and how to undo it. To change it for every device at once, do it on your router instead.

Which DNS addresses to use

Provider IPv4 Private DNS / DoT hostname
Cloudflare 1.1.1.1 and 1.0.0.1 one.one.one.one
Google 8.8.8.8 and 8.8.4.4 dns.google
Quad9 9.9.9.9 and 149.112.112.112 dns.quad9.net

Not sure which to pick? See what is a DNS server and the best DNS servers for speed.

Where to change DNS on Windows 11, Mac, iPhone and Android, with the menu path for each
The DNS setting on each system. Switch back to Automatic to undo.

How to change DNS on Windows 11

  1. Open Settings → Network & internet → Wi-Fi (or Ethernet).
  2. Select Hardware properties (on Wi-Fi) or your connection.
  3. Next to DNS server assignment, select Edit and choose Manual.
  4. Turn on IPv4, enter the preferred DNS (for example 1.1.1.1) and alternate DNS (1.0.0.1). You can also set DNS over HTTPS to On (automatic template).
  5. Select Save.

How to change DNS on Windows 10

  1. Open Control Panel → Network and Sharing Center → Change adapter settings.
  2. Right-click your Wi-Fi or Ethernet adapter → Properties.
  3. Select Internet Protocol Version 4 (TCP/IPv4) → Properties.
  4. Choose Use the following DNS server addresses, enter the two addresses, then OK.

How to change DNS on a Mac

  1. Open System Settings → Network → Wi-Fi (or Ethernet) → Details.
  2. Select DNS, click + and add each address. Remove any you don’t want with −.
  3. Click OK.

How to change DNS on iPhone and iPad

  1. Open Settings → Wi-Fi and tap the (i) next to your network.
  2. Tap Configure DNS → Manual.
  3. Remove the existing servers, tap Add Server and enter the new addresses, then Save.

This applies only to that WiFi network, not to mobile data. For system-wide encrypted DNS, use the provider’s app, such as Cloudflare’s 1.1.1.1 app.

How to change DNS on Android

  1. Open Settings → Network & internet → Private DNS (on Samsung: Connections → More connection settings → Private DNS).
  2. Choose Private DNS provider hostname.
  3. Enter one.one.one.one (Cloudflare) or dns.google (Google), then Save.

Private DNS is encrypted and works on WiFi and mobile data.

After changing DNS

  • Clear the DNS cache: Windows: ipconfig /flushdns. Mac: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder.
  • Check that it works: open a few websites. If nothing loads, double-check the addresses for typos.
  • To undo it: switch the setting back to Automatic (DHCP).

Changing DNS can make pages start loading faster, but it won’t raise your Mbps. Check your real speed with our speed test.

Frequently asked questions

Do I need to restart after changing DNS?

Usually not. Clearing the DNS cache or reconnecting to WiFi is enough.

Why did the internet stop working after I changed DNS?

Most often it’s a typo in the address. Re-enter it, or set DNS back to Automatic.

Will changing DNS affect my VPN?

Many VPN apps use their own DNS while connected, so your manual setting applies only when the VPN is off.

Test Your Internet Speed Now

Get accurate results in seconds. Free, no signup required.

Start Speed Test →