Wi-Fi & Internet
How to Change Your DNS Server to 1.1.1.1 or 8.8.8.8
Written by Free Tech Support Editorial Team · Updated

Every time you visit a website, your device asks a DNS server to translate the site’s name into an address. By default, you use the DNS servers your internet provider assigns. If you want to change DNS server settings to something faster or more reliable, two popular free options are Cloudflare’s 1.1.1.1 and Google’s 8.8.8.8. The change takes a couple of minutes, and you can switch back whenever you like.
This is an independent guide. Cloudflare and Google publish their own setup instructions and privacy policies on their official sites.
Which addresses to use
| Service | IPv4 addresses | IPv6 addresses | Android Private DNS hostname |
|---|---|---|---|
| Cloudflare | 1.1.1.1 and 1.0.0.1 | 2606:4700:4700::1111 and 2606:4700:4700::1001 | one.one.one.one |
| Google Public DNS | 8.8.8.8 and 8.8.4.4 | 2001:4860:4860::8888 and 2001:4860:4860::8844 | dns.google |
Use both addresses from the same service (one as preferred, one as alternate) so you have a backup. Cloudflare also offers 1.1.1.2 and 1.0.0.2, which block known malware sites; check Cloudflare’s 1.1.1.1 documentation for the current family-filtering options.
Option 1: Change DNS on your router (covers the whole house)
Changing the router means every phone, laptop, TV and game console that connects gets the new DNS automatically.
- Sign in to your router’s admin page or app. The address and default login are usually printed on a sticker on the router.
- Look for DNS in the Internet, WAN or DHCP/LAN settings.
- Switch from automatic to manual and enter the two addresses for your chosen service.
- Save, then restart the router.
Some provider-supplied routers do not allow DNS changes. In that case, change DNS on each device instead. If you need help getting into the router, our guide to setting up a new router explains the admin page.
Option 2: Windows 11
- Open Settings > Network & internet.
- Click Wi-Fi (or Ethernet for a cabled connection), then Hardware properties.
- Next to DNS server assignment, click Edit.
- Change Automatic (DHCP) to Manual.
- Turn on IPv4 and enter the preferred and alternate addresses. Turn on IPv6 too if you want, and enter the IPv6 addresses.
- If a DNS over HTTPS option appears, you can turn it on for encrypted lookups. Leave it off if you are unsure.
- Click Save.
On Windows 10, which reached end of support on 14 October 2025, press Win + R, type ncpa.cpl, right-click your adapter, choose Properties, double-click Internet Protocol Version 4 (TCP/IPv4), select Use the following DNS server addresses, and enter the addresses. This older Control Panel method also still works on Windows 11.
Option 3: Mac
- Open System Settings > Network.
- Click Wi-Fi (or your Ethernet connection), then click Details next to the network you are using.
- Select DNS in the sidebar.
- Under DNS Servers, click + and add each address.
- Click OK.
To undo it, select the added servers and click -.
Option 4: iPhone and iPad
- Open Settings > Wi-Fi.
- Tap the i button next to your connected network.
- Scroll down and tap Configure DNS.
- Choose Manual, delete the existing servers, and tap Add Server to enter each new address.
- Tap Save.
This applies only to that Wi-Fi network. It does not change DNS on mobile data.
Option 5: Android
Android uses Private DNS, which takes a hostname rather than numbers and encrypts lookups.
- On a Google Pixel and many other phones, open Settings > Network & internet > Private DNS. On Samsung Galaxy phones, go to Settings > Connections > More connection settings > Private DNS.
- Choose Private DNS provider hostname.
- Enter
one.one.one.onefor Cloudflare ordns.googlefor Google. - Tap Save.
Private DNS works on both Wi-Fi and mobile data. Some public or workplace Wi-Fi networks block it; if pages stop loading there, set it back to Automatic.
Check that the change worked
- On Windows, open Terminal and type
nslookup example.com. The “Server” or “Address” line at the top should show your new DNS server. - Cloudflare offers a check page at one.one.one.one/help that confirms whether you are using 1.1.1.1.
- Simply browsing normally is a good test. If sites load, DNS is working.
If websites stop loading after the change, check for typing mistakes in the addresses, or switch back to automatic.
Things to know before you switch
- A VPN overrides your DNS. While a VPN is connected, it usually uses its own DNS servers. See do you need a VPN for the basics.
- Workplace or school devices may have DNS set by an administrator. Do not change it without permission.
- Parental-control services from your provider may rely on its DNS. Changing DNS can bypass them, so review your parental controls if that matters to you.
To change DNS for every device at once you need the router admin page; our guide on how to log in to your router shows how to find its address and password.
Related guides
If you are changing DNS because of an error, see fix “DNS server not responding” and fix “This site can’t be reached”. You can also browse every guide in the Wi-Fi and internet section.
Frequently asked questions
Should I change my DNS server?
It is worth trying if you see DNS errors or slow page starts, or if you want a DNS provider with a published privacy policy. If everything works well already, the difference may be small.
Which is better, 1.1.1.1 or 8.8.8.8?
Both are reliable, free public DNS services. Speed depends on your location and provider, so try one and switch if you notice no improvement.
Will changing DNS make my internet faster?
It can shorten the moment before a page starts loading, but it does not change download or streaming speed, which depend on your internet plan and Wi-Fi.
How do I undo a DNS change?
Set DNS back to Automatic (DHCP) on Windows, remove the added servers on Mac or iPhone, or set Private DNS back to Automatic on Android.
Does changing DNS hide my browsing?
No. It changes who answers your address lookups, but your internet provider can still see which sites you connect to. Encrypted DNS options add some privacy, but they are not a VPN.
Sources
Free Tech Support Editorial Team
Editorial team
The Free Tech Support editors write and update these guides from the official documentation of Microsoft, Apple, Google and device makers. We are an independent site with no phone line and no paid support service.

