Every time you visit a website, your computer asks a DNS server to turn the website’s name into the numbered address that computers use. If you’d like to know more, here’s how DNS works.
Unless you’ve changed it, your PC uses the DNS server your broadband provider (ISP) gives it. But you don’t have to. Google Public DNS is a free DNS service that anyone can use, and its addresses are easy to remember: 8.8.8.8 and 8.8.4.4.
In this guide I’ll show you how to switch to Google Public DNS in Windows 11 and Windows 10, how to turn on encrypted DNS in Windows 11, how to check it’s working, and how to switch back if things don’t work out.
The Short Version
Google Public DNS addresses: 8.8.8.8 (preferred) and 8.8.4.4 (alternative).
Windows 11: Settings › Network & internet › Properties › DNS server assignment › Edit › Manual › turn on IPv4 › type 8.8.8.8 and 8.8.4.4 › set DNS over HTTPS to On (automatic template) › Save.
Windows 10 or 11: type view network connections in the Start menu › right-click your adapter › Properties › Internet Protocol Version 4 (TCP/IPv4) › Properties › Use the following DNS server addresses › type 8.8.8.8 and 8.8.4.4 › OK.
Write down your current DNS settings first, so you can switch back if you need to.
Table of contents
- Google Public DNS Server Addresses
- Should You Switch to Google DNS?
- How to Change DNS to Google in Windows 11 Settings
- How to Change to Google DNS in Control Panel (Windows 10 and 11)
- How to Check You’re Using Google DNS
- Other Ways to Use Google DNS
- How to Switch Back to Your Old DNS
- Troubleshooting
- Google DNS FAQ
- Summary
Google Public DNS Server Addresses
These are the Google DNS server addresses you need. Most people only need the first two.
- Preferred DNS server: 8.8.8.8
- Alternative DNS server: 8.8.4.4
- IPv6 preferred DNS server: 2001:4860:4860::8888
- IPv6 alternative DNS server: 2001:4860:4860::8844
Both addresses belong to Google. If one doesn’t answer, your computer tries the other, so it’s worth filling in both boxes.
The IPv6 addresses are for broadband that uses IPv6. Many UK connections do, including BT and Sky. Adding them does no harm if yours doesn’t, and it stops Windows quietly using your provider’s IPv6 DNS instead.
Is There a Google Gateway Address?
No. Some people look for a Google gateway or default gateway address, but you don’t need one. Your default gateway is your own router, and it stays exactly as it is. Switching to Google DNS only changes the DNS server boxes.
Should You Switch to Google DNS?
Switching is free, takes a couple of minutes and is easy to undo. But it isn’t magic, so here’s what it will and won’t do.
Why People Switch to Google DNS
- Websites can be found more quickly if your provider’s DNS servers are slow or busy.
- It’s very reliable. If your provider’s DNS goes down, websites stop loading even though your broadband is fine. Google DNS keeps you going.
- It supports encrypted DNS. Windows 11 can send your lookups to Google over an encrypted connection (DNS over HTTPS), so they can’t be read or tampered with on the way.
When It’s Not Worth It
- It won’t speed up your broadband. DNS only affects how quickly a website is found, not how fast things download. A slow connection stays slow.
- It could even be slower. It depends on how good your provider’s DNS is now, which is why I always say write down your old settings first.
- Your provider’s parental controls may stop working. Filters like Sky Broadband Shield and BT Parental Controls usually work through the provider’s own DNS. Switch a PC to Google DNS and those filters may no longer cover it.
- Google handles your lookups instead of your provider. Google says it deletes the logs holding your IP address within 24 to 48 hours and doesn’t use Public DNS data to target ads. You can read the details on Google’s Public DNS privacy page.
And one thing it isn’t: Google DNS isn’t a VPN. Your provider can still see which websites you connect to, and websites still see your IP address. If that’s what you’re after, here’s what a VPN actually does.
How to Change DNS to Google in Windows 11 Settings
This is the method I recommend on Windows 11. It’s the only one that lets you turn on encrypted DNS.
- Press Windows key + I to open Settings.
- Click Network & internet on the left.
- Click Properties at the top of the page, next to your Wi-Fi or Ethernet connection.

- Scroll down to DNS server assignment and click Edit.

- In the Edit DNS settings box, change Automatic (DHCP) to Manual.
- Turn on IPv4.
- Type 8.8.8.8 in Preferred DNS.
- Set DNS over HTTPS to On (automatic template).
- Type 8.8.4.4 in Alternate DNS and set its DNS over HTTPS to On (automatic template) as well.
- Click Save.

Quick Tip
If you see a Fallback to plaintext switch under DNS over HTTPS, turn it on. If the encrypted connection ever fails, Windows can still look websites up the ordinary way, so you’re never left without the internet.
Add the IPv6 Addresses Too
Still in Edit DNS settings, turn on IPv6. Type 2001:4860:4860::8888 in Preferred DNS and 2001:4860:4860::8844 in Alternate DNS, set DNS over HTTPS the same way, then click Save.
If your broadband uses IPv6 and you skip this step, Windows can carry on using your provider’s DNS for some lookups.
Check the Change in Settings
Back on the properties page, look for IPv4 DNS servers. It should now show 8.8.8.8 (Encrypted) and 8.8.4.4 (Encrypted).

How to Change to Google DNS in Control Panel (Windows 10 and 11)
This is the classic way, and it works on both Windows 10 and Windows 11. It’s the method to use on Windows 10, which doesn’t have the encrypted DNS option.
Open Network Connections
- Click the Start button, then type view network connections.
- Click View network connections (Control Panel).


If it doesn’t show up, press Windows key + R, type the command below and press Enter.
ncpa.cpl
Open Your Network Adapter’s Properties
The Network Connections window shows every network adapter on your computer. You need the one you use to connect to the internet.
- Wired connection: it’s your Ethernet adapter.
- Wireless connection: it’s your Wi-Fi adapter.
- Right-click the adapter, then left-click Properties.

- Click Internet Protocol Version 4 (TCP/IPv4) once to select it.
- Click the Properties button.


The Internet Protocol Version 4 (TCP/IPv4) Properties Box
The box is split into two sections. The top section is your computer’s own IP address and default gateway (your router). Leave this section as it is.
The lower section is the DNS server your computer uses. Usually it’s set to Obtain DNS server address automatically and the boxes are empty.

If Use the following DNS server addresses is already selected and you can see numbers in the boxes, write them down or take a screenshot of the window before you change anything.

You Might Want to Go Back
Switching from your provider’s DNS servers to Google’s isn’t a guarantee of better internet performance. Things could even get worse. It all depends on what you’ve got now.
With a note of your current settings, you can always change back if things don’t work out.
Enter the Google DNS Server IP Addresses
- Select Use the following DNS server addresses, if it isn’t already selected.
- Type 8.8.8.8 in Preferred DNS server.
- Type 8.8.4.4 in Alternative DNS server.
- Click OK, then click Close on the adapter’s Properties window.

For IPv6, select Internet Protocol Version 6 (TCP/IPv6) in the same list, click Properties and enter 2001:4860:4860::8888 and 2001:4860:4860::8844 the same way.
How to Check You’re Using Google DNS
The quickest check is to open a few big websites, like the BBC, Amazon or eBay, then try a few searches. If everything loads, you’re good to go.
For proof that Google is answering, use Command Prompt.
- Click Start, type cmd and open Command Prompt.
- Type this and press Enter:
nslookup google.com
Look at the first two lines. If you’re using Google DNS, they say:
Server: dns.google
Address: 8.8.8.8

To see every DNS server your PC is set to use, IPv6 included, type:
ipconfig /all
Then look for DNS Servers under your Wi-Fi or Ethernet adapter.
Clear the Old DNS Cache
Windows remembers recent lookups for a while. To make it start afresh with Google, type this and press Enter, then close and reopen your web browser:
ipconfig /flushdns
You should see Successfully flushed the DNS Resolver Cache. There’s no need to restart your computer, but it does no harm if something still seems odd.
Other Ways to Use Google DNS
On Your Router (Most UK Broadband Hubs Won’t Let You)
Changing the DNS on your router would switch every device in the house at once. If you’ve bought your own router, look for the DNS settings in its DHCP or LAN settings.
Most UK broadband hubs don’t allow it, though. BT and EE Smart Hubs, Sky hubs and the Virgin Media Hub 5 all keep you on the provider’s own DNS. On those, change the DNS on each computer instead, as shown above.
If you’re sorting out the rest of your network too, here’s how to set up a home network in Windows 10 and 11.
In Chrome or Edge Only
Chrome and Edge can use Google DNS by themselves, without changing anything in Windows. It’s handy on a PC where you can’t change the network settings.
- Chrome: click the three dots › Settings › Privacy and security › Security. Turn on Use secure DNS and choose Google (Public DNS).
- Edge: click the three dots › Settings › Privacy, search, and services › Security. Turn on Use secure DNS, select Choose a service provider and pick Google (Public DNS).
This only affects that one browser. Other apps on your PC still use whatever DNS Windows is set to.
And it won’t change your search engine. If Edge keeps sending you to Bing, here’s how to make Google your default search engine.
How to Switch Back to Your Old DNS
If websites feel slower or something stops working, switching back takes a minute.
- Windows 11 Settings: go back to DNS server assignment › Edit, choose Automatic (DHCP) and click Save.
- Control Panel: open the TCP/IPv4 properties again, select Obtain DNS server address automatically and click OK. Do the same for TCP/IPv6 if you changed it.
If your old settings had addresses typed in, put back the numbers you wrote down instead.
Want to try a different free DNS service? Here’s how to set up OpenDNS on your computer.
Troubleshooting
Websites Won’t Load After Changing DNS
Check the numbers first. A typo like 8.8.8.88 stops everything. Then check you only changed the DNS section. If the IP address in the top half was changed too, set it back to Obtain an IP address automatically.
Still stuck? Switch back to automatic to get online again, then try once more.
Windows Still Shows Your Old DNS Servers
- You changed the wrong adapter. A laptop on Wi-Fi uses its Wi-Fi adapter, not the Ethernet one.
- IPv6 is still on automatic. Windows is using your provider’s IPv6 DNS. Add Google’s IPv6 addresses too.
- A VPN is connected. Most VPN apps use their own DNS while they’re switched on, which is normal.
The DNS over HTTPS Option Isn’t There
Encrypted DNS is only in the Windows 11 Settings app. You won’t find it in Control Panel, and Windows 10 doesn’t have it at all.
In Windows 11, Google’s 8.8.8.8 and 8.8.4.4 are on the built-in list of encrypted DNS services, so On (automatic template) works without typing anything else.
Your Parental Controls Stopped Working
Broadband filters like Sky Broadband Shield and BT Parental Controls usually rely on your provider’s DNS, so a PC set to Google DNS skips them. If you need those filters on a child’s computer, leave that PC on automatic DNS.
DNS Server Not Responding
If Windows Network Diagnostics says the DNS server isn’t responding, your provider’s DNS may be having a bad day. Switching to Google DNS often gets you straight back online.
If you’re already on Google DNS and still see it, the problem is more likely your connection. Restart your router and your PC, and check whether other devices can get online.
Google DNS FAQ
Q: What is Google Public DNS?
A: A free DNS service run by Google. It turns website names into the numbered addresses computers use, the same job your broadband provider’s DNS does. Anyone can use it, and you don’t need a Google account.
Q: What are the Google DNS server addresses?
A: 8.8.8.8 and 8.8.4.4 for IPv4, and 2001:4860:4860::8888 and 2001:4860:4860::8844 for IPv6. Put 8.8.8.8 in the preferred box and 8.8.4.4 in the alternative box.
Q: Is Google DNS free?
A: Yes, completely. There’s nothing to sign up for or install.
Q: Is Google DNS safe to use?
A: Yes. It’s one of the most widely used DNS services in the world. It checks DNSSEC signatures, which helps stop fake answers, and on Windows 11 you can encrypt your lookups with DNS over HTTPS.
Q: Is Google DNS faster than my broadband provider’s DNS?
A: Sometimes. It depends on how good your provider’s DNS is. It only affects how quickly websites are found, not your download speed. Try it, and switch back if you don’t notice a difference.
Q: Does Google see which websites I visit?
A: Google sees the website names your PC looks up, instead of your provider seeing them. Google says it deletes the logs holding your IP address within 24 to 48 hours, keeps only anonymous records after that, and doesn’t use Public DNS data to target ads.
Q: Is Google DNS the same as a VPN?
A: No. It only changes who looks up website addresses for you. It doesn’t hide your IP address, and your provider can still see which websites you connect to.
Q: Do I need to change my default gateway to use Google DNS?
A: No. Your default gateway is your router and it should stay as it is. Only the DNS server addresses change.
Q: Is Google DNS better than OpenDNS or Cloudflare?
A: They’re all free and reliable. Cloudflare (1.1.1.1) often comes out quickest in independent speed tests, OpenDNS offers a free family filter, and Google’s addresses are the easiest to remember. Any of them is fine for home use.
Q: Can I use Google DNS on my phone?
A: Yes. On Android, go to Settings › Network & internet › Private DNS (on a Samsung, Connections › More connection settings › Private DNS), choose Private DNS provider hostname and type dns.google. On an iPhone, go to Settings › Wi-Fi, tap the i beside your network, tap Configure DNS, choose Manual and add 8.8.8.8 and 8.8.4.4. The iPhone setting only covers that Wi-Fi network.
Q: Do I need to restart my computer after changing DNS?
A: Usually not. The change works straight away. Close and reopen your browser, or run ipconfig /flushdns in Command Prompt to clear the old lookups.
Q: How do I switch back from Google DNS?
A: Set the DNS back to automatic: Automatic (DHCP) in Windows 11 Settings, or Obtain DNS server address automatically in Control Panel. If you had addresses typed in before, put those back instead.
Summary
Switching to Google Public DNS means typing 8.8.8.8 and 8.8.4.4 into your network settings. On Windows 11, use the Settings app and turn on DNS over HTTPS while you’re there. On Windows 10, use Control Panel.
Write down your old settings first, check it’s working with nslookup, and if things aren’t any better, switch back. Nothing is lost either way.
Related Posts
How to Set Up OpenDNS on Your Computer
Another free DNS service, with a family filter if you want one.
How Does DNS Work?
What a DNS server actually does, in plain English.
What Does a VPN Do?
If you want more privacy than a DNS change can give you.
How to Do a Reverse Image Search
Got a photo and want to know where it came from?

Upload a picture to Google or Bing and they’ll find where else it appears online, or pictures like it.
You can find this and other related step by step guides in – At Home Computer Internet Guides
Written by Jeff Porter. I’ve been fixing Windows PCs since 2010 and I’m CompTIA Network+ certified. More about me