TechForLive
Internet & Apps

Change DNS to 1.1.1.1 or 8.8.8.8 on any device

Switch your DNS to Cloudflare 1.1.1.1 or Google 8.8.8.8 on Windows, Mac, Android and iPhone, or once on your router, with the exact steps and addresses.

Hand typing DNS server addresses into network settings on a laptop
In short: Change DNS in your network settings. Use 1.1.1.1 and 1.0.0.1 for Cloudflare, or 8.8.8.8 and 8.8.4.4 for Google. On a phone it is Private DNS on Android and Configure DNS on iPhone.
  • Use one provider for both addresses: 1.1.1.1 with 1.0.0.1, or 8.8.8.8 with 8.8.4.4.
  • Android Private DNS covers the whole phone; iPhone DNS is per Wi-Fi network.
  • A router change covers every device at once, unless a device overrides it.
  • Your provider can still see where you connect, DNS change or not.

Change DNS to 1.1.1.1 or 8.8.8.8 in two minutes

DNS is the phone book of the internet. Every time you type a website name, your device asks a DNS server for the number behind it, the IP address. Your internet provider runs that server by default. Changing it means asking Cloudflare or Google instead. The change takes two minutes, it costs nothing, and you can undo it the same way.

People switch for three reasons. A faster resolver can make the first moment of a page load feel quicker, because the lookup happens before anything downloads. A public resolver can also reach sites your provider blocks or filters, since the provider no longer answers the lookup. Some prefer a resolver with a published privacy policy over one run by their provider. All three are real reasons, and none of them needs any software installed.

Keep the two numbers straight before you start. Cloudflare is 1.1.1.1 as the first address and 1.0.0.1 as the second. Google is 8.8.8.8 first and 8.8.4.4 second. Always use both addresses from the same provider: mixing them sends half your lookups to one company and half to another.

At a glanceAnswer
Cloudflare DNS1.1.1.1, 1.0.0.1
Google DNS8.8.8.8, 8.8.4.4
Android Private DNSone.one.one.one
Google hostnamedns.google
Cloudflare IPv62606:4700:4700::1111
Flush DNS (Windows)ipconfig /flushdns
Google IPv62001:4860:4860::8888

What DNS does, and what changing it will not do

A DNS lookup is only the first step of opening a page. Your device asks the resolver for the address, then connects to the site directly. DNS never sees the page itself, and it never carries your traffic. That is why changing it can make lookups faster but cannot make a slow connection fast. Slow downloads point at the line, not the phone book.

Privacy is not what a DNS change buys. The addresses you contact stay visible to your provider, and names can surface through the connection in other ways. A VPN hides far more, and even that has limits. Think of a DNS change as a speed and reliability fix, not a privacy cloak. If privacy is the goal, the next step is encrypted DNS, which the later sections cover, or a VPN.

Typing 1.1.1.1 into the settings does not turn on encryption by itself. Plain DNS sends your lookups without encryption, and that stays true whatever resolver you pick. Encryption comes from DNS over HTTPS or DNS over TLS, which wrap the lookup. Windows 11 offers a DNS over HTTPS switch under the same settings page. Android Private DNS uses encryption by design. An iPhone needs a profile or an app for it. The plain change still helps; it just is not encrypted.

Pick your resolver: Cloudflare or Google

Both resolvers are free, fast and run by big companies, so the choice is about trust and features rather than speed. Cloudflare launched 1.1.1.1 on 1 April 2018 and promises to delete lookup logs within a day. Google Public DNS has run since 2009 and is one of the most used resolvers on the internet. Neither needs an account or any install. Pick one for a few days, then try the other if you are curious.

Cloudflare also runs a family version with filtering built in. The standard 1.1.1.1 answers every lookup as it comes. The family version at 1.1.1.2 blocks known malware sites, and 1.1.1.3 blocks malware and adult sites as well. The same filtering exists as hostnames for Android Private DNS: security.cloudflare-dns.com blocks malware, and family.cloudflare-dns.com blocks both. Google has no family version, so families who want filtering pick Cloudflare.

Work and school computers are the one place to pause. A workplace may rely on its own DNS to reach internal sites, and a school may filter through it. Changing the resolver there can break internal pages or break the rules. Managed devices may enforce DNS through a profile you cannot change. Leave those machines alone and ask IT first. On your own devices at home, the change is yours to make and undo.

ResolverFirst addressSecond addressFiltering version
Cloudflare1.1.1.11.0.0.11.1.1.2 / 1.1.1.3
Google8.8.8.88.8.4.4None

Change DNS on Windows and Mac

Windows network settings page showing DNS server assignment

Windows 11 keeps the setting under the network page. Open Settings, then Network and internet, then the Wi-Fi or Ethernet connection you use. Find DNS server assignment and click Edit. Switch it from Automatic to Manual and turn on IPv4. Type 1.1.1.1 as the preferred DNS and 1.0.0.1 as the alternate, or 8.8.8.8 and 8.8.4.4 for Google. Save, and Windows applies it at once. The same page offers DNS over HTTPS below the addresses; set it to On (automatic template) for encryption.

Your computer may still answer from its old cache for a while. Open Command Prompt and run ipconfig /flushdns, then close and reopen the browser. If a site still fails, restart the computer to clear every cached lookup at once. On older Windows 10, find it in the Control Panel under Network and Sharing Centre. Then open Change adapter settings, then the connection properties, then Internet Protocol Version 4. The numbers you type are the same.

On a Mac, open System Settings, then Network, then the Wi-Fi or Ethernet connection. Click Details, then DNS. Use the plus button to add 1.1.1.1 and then 1.0.0.1, or 8.8.8.8 and 8.8.4.4, and remove the old servers with the minus button. Click OK, then Apply. The Mac flushes its cache when you apply, so pages should use the new resolver at once. Quit and reopen the browser if a page still loads the old way.

Change DNS on Android and iPhone

Android has the simplest switch of any phone. Open Settings, then Network and internet, then Private DNS. Choose Private DNS provider hostname and type one.one.one.one for Cloudflare or dns.google for Google. Save, and the phone uses that resolver on every network, including mobile data. This is encrypted DNS by design, so it covers the privacy gap the plain change leaves open. Switch Private DNS back to Off and test again when a site stops loading.

Some Android phones hide Private DNS in a different spot. Samsung puts it under Settings, then Connections, then More connection settings. Other brands bury it under a search: open Settings and search for Private DNS. The setting needs Android 9 or later, so a very old phone may not have it at all. Those phones need a per-network change instead. Open the network, tap the pencil, choose Advanced, set IP settings to Static, and fill in the DNS fields.

An iPhone sets DNS per Wi-Fi network, not for the whole phone. Open Settings, then Wi-Fi, and tap the small i next to the network you use. Scroll to Configure DNS, choose Manual, remove the old servers, and add 1.1.1.1 and 1.0.0.1, or 8.8.8.8 and 8.8.4.4. Tap Save, then toggle Wi-Fi off and on. You must repeat this on each network you join. For system-wide encrypted DNS, install a DNS profile from Cloudflare or Google. DNS profiles work on iOS 14 and later. The official 1.1.1.1 app flips the same switch for all networks.

Change it once for the whole house, and check it worked

router admin page on a laptop showing DNS settings

The router is the one place that covers everything. Log into the router admin page, find the WAN or DHCP settings, and replace the DNS servers there with your chosen pair. Router menus differ by brand, so look for WAN, DHCP or Internet settings. Every device behind it inherits the new resolver: phones, TVs, consoles and guests. Two catches apply. Devices with their own override ignore the router, such as Android Private DNS or a browser with secure DNS. And on a shared network, this is a change other people will notice, so make it openly.

Check that the change took. Cloudflare runs a check page at 1.1.1.1/help, which shows whether your lookups now go through its resolver. Open it in the browser and read the result. If it still shows your provider, the change did not apply. Recheck the numbers for a typo: 1.1.1.11 will not work. Make sure you saved. Then flush the cache or restart the device, and test again. A site that failed before should now load, or load faster. From a command line, nslookup example.com names the server that answered at the top of its output.

To go back, repeat the same steps and restore the old values. The list below shows each one.

  • Windows: set DNS server assignment back to Automatic
  • Mac: remove the servers you added
  • Android: set Private DNS back to Off
  • iPhone: set Configure DNS back to Automatic
  • Router: restore the provider addresses or set the field back to automatic
Tip: Test the change on one device first. If it works there, roll it out to the router.

Quick answers

Will changing DNS make my internet faster?

It can make pages start faster, because the lookup happens first. It will not speed up downloads, streaming or games, since those use the connection itself. Slow lookups feel faster at once. A slow line stays slow whatever DNS you pick.

Is 1.1.1.1 or 8.8.8.8 better?

For most people, either works. Cloudflare is the pick if you want the stricter privacy promise or the family filtering version. Google is the pick if you want the resolver that has run the longest. Try one for a few days, then the other, and keep whichever feels better.

Can I use 1.1.1.1 and 8.8.8.8 together?

You can, but you should not. The two addresses in your settings should come from the same provider, so your lookups stay with one company. Mixing them splits your lookups in two and gains nothing. Pick Cloudflare or Google and use its pair.

Why do some sites still not load after I change DNS?

The old lookup may still sit in a cache. Flush the DNS cache, restart the device, or wait a few minutes. Check the numbers for a typo, and confirm the change saved. A site that still fails on both resolvers points at the site itself or your connection, not the DNS.

Does changing DNS unblock websites?

Sometimes. If your provider blocks a site by answering its lookups wrongly, a public resolver answers them correctly and the site loads. It will not beat blocks that work another way, such as IP blocking.