How to change DNS to Google’s 8.8.8.8 on Windows 11 for faster, secure browsing

To change DNS to Google's 8.8.8.8 on Windows 11, open Settings > Network & internet, select your connection, select Edit next to DNS server assignment, choose Manual and enter 8.8.8.8 and 8.8.4.4.

This guide covers the Settings, Control Panel and command-line routes, Google's IPv6 addresses, DNS over HTTPS, a test that proves Google is answering, and fixes for lookups that break or slow down.

How to change DNS to Google’s 8.8.8.8 on Windows 11 for faster, secure browsing
Google Public DNS answers at 8.8.8.8 and 2001:4860:4860::8888, the preferred IPv4 and IPv6 addresses to enter in Windows 11. (Image: Google)

Method 1: Change DNS via Windows 11 network settings

Write down the current DNS addresses first. Google asks every user to keep them so the old setup can be restored.

  1. Open network settings: select Start > Settings > Network & internet.
  2. Select Ethernet, or select Wi-Fi > Manage known networks and choose your network. This page holds the adapter properties for that connection.
  3. Scroll to DNS server assignment and select Edit to edit the adapter DNS settings.
  4. Change Automatic (DHCP) to Manual, then turn on IPv4.
  5. Input the Google DNS addresses: type 8.8.8.8 in Preferred DNS and 8.8.4.4 in Alternate DNS.
  6. Select Save.
  7. Test your connection: open a browser, load a site by name, then close the browser, reopen it and refresh the page a few times.

The change applies to that one connection. Repeat it for each Wi-Fi network you use and for Ethernet, as Google's own setup page advises.

Google says either address can be primary. Always set both, and never enter the same address twice.

Why change DNS to Google’s servers on Windows 11?

Windows normally uses the resolver your router or internet provider hands out through DHCP. Switching to Google Public DNS replaces that resolver for name lookups only.

Reason What Google Public DNS does Limit to know
Faster lookups Answers a large share of queries from Google-scale shared caches, and anycast routes you to the nearest data center Only the lookup step speeds up, and only if your current resolver is slow
Encrypted DNS Supports DNS over HTTPS, and Windows 11 lists 8.8.8.8 and 8.8.4.4 as known DoH servers Windows 10 has no DNS over HTTPS setting
Tamper resistance Validates DNSSEC and adds anti-spoofing defenses against cache poisoning Protects DNSSEC-signed domains fully; unsigned ones get the anti-spoofing checks only
No redirects Returns an error for a mistyped or missing domain instead of an ad or search page Some ISP resolvers redirect such lookups; Google never does
Reliability Gives you a second, independent resolver when your provider's DNS fails It is not a malware or adult-content filter
Change DNS to Google for faster lookups: DNS time in a page-load waterfall
Dark grey DNS segments mark lookup time that runs before each connection opens, the only step a faster resolver can shorten. (Image: Google)

Google DNS server addresses for IPv4 and IPv6

Enter the IPv6 pair only if your connection uses IPv6. Windows keeps separate DNS lists for IPv4 and IPv6, so an IPv4-only change leaves IPv6 lookups on the old resolver.

Field IPv4 IPv6 IPv6, full form
Preferred DNS 8.8.8.8 2001:4860:4860::8888 2001:4860:4860:0:0:0:0:8888
Alternate DNS 8.8.4.4 2001:4860:4860::8844 2001:4860:4860:0:0:0:0:8844
DNS over HTTPS template https://dns.google/dns-query https://dns.google/dns-query Same template for both

Use the full form only on equipment that refuses the short :: notation. Windows accepts the short form.

Method 2: Change DNS to 8.8.8.8 in Control Panel on Windows 11

This is the route Google documents for Windows. It works on Windows 11 and Windows 10 but cannot turn on DNS over HTTPS.

  1. Open Control Panel > Network and Internet > Network and Sharing Center > Change adapter settings.
  2. Right-click Wi-Fi or Ethernet and select Properties. Approve the administrator prompt if it appears.
  3. On the Networking tab, select Internet Protocol Version 4 (TCP/IPv4), then Properties.
  4. Select Advanced and open the DNS tab. Note any listed addresses, remove them and select OK.
  5. Choose Use the following DNS server addresses.
  6. Type 8.8.8.8 in Preferred DNS server and 8.8.4.4 in Alternate DNS server, then select OK.
  7. Repeat with Internet Protocol Version 6 (TCP/IPv6) and Google's IPv6 pair if you use IPv6.

Only the DNS part changes. The IP address itself can stay automatic.

Method 3: Change DNS via Command Prompt or PowerShell

Search for PowerShell or Command Prompt on the taskbar and select Run as administrator. Replace Wi-Fi in each command with your own interface name.

Determine your network interface name

Every command targets one interface by its name or index number.

  1. In PowerShell, run Get-DnsClientServerAddress.
  2. Note the InterfaceAlias of the connection you use, such as Wi-Fi or Ethernet, and write down its current servers.
  3. In Command Prompt, netsh interface ipv4 show dnsservers lists the same interfaces.

Set DNS servers via PowerShell

Set-DnsClientServerAddress stores static servers that override the DNS your router assigns.

  1. Run Set-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -ServerAddresses ("8.8.8.8","8.8.4.4").
  2. Add -Validate if you want Windows to check that both servers respond before it saves them.
  3. For IPv6, use the netsh lines below, then check them with Get-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -AddressFamily IPv6.

Set DNS servers via Command Prompt

netsh sets the first server, then adds the backup at position 2.

  1. Run netsh interface ipv4 set dnsservers name="Wi-Fi" source=static address=8.8.8.8 register=primary.
  2. Run netsh interface ipv4 add dnsservers name="Wi-Fi" address=8.8.4.4 index=2.
  3. For IPv6, run the same two lines with ipv6 and the addresses 2001:4860:4860::8888 and 2001:4860:4860::8844.

Confirm and test

The set commands print nothing when they succeed.

  1. Run Get-DnsClientServerAddress -InterfaceAlias "Wi-Fi" and check that 8.8.8.8 and 8.8.4.4 are listed.
  2. Run ipconfig /flushdns so Windows drops answers cached from the old server.
  3. Run the Google test in the next section.

If you change several PCs, keep the PowerShell line in a script. It also makes the switch back to automatic DNS a one-line job.

Turn on DNS over HTTPS for Google DNS in Windows 11

Plain DNS travels unencrypted over UDP or TCP, so anyone on the network path can read or alter it. Google has offered DNS over HTTPS since 2016, and Windows 11 can use it without extra software.

  1. Open Settings > Network & internet, select your connection and select Edit next to DNS server assignment.
  2. Keep Manual and IPv4 on, with 8.8.8.8 and 8.8.4.4 entered.
  3. Under each address, set DNS over HTTPS to On (automatic template).
  4. Leave Fallback to plaintext off for strict encryption, or turn it on so lookups still work if HTTPS fails.
  5. Repeat for IPv6 if you entered Google's IPv6 pair.
  6. Select Save.

The automatic template only appears for servers on Windows' known list. Run Get-DnsClientDohServerAddress in PowerShell to see it; Google's four addresses are on it by default.

If you pick On (manual template), enter https://dns.google/dns-query. With fallback on, Windows does not tell you when a query drops back to plain text.

Google DNS over HTTPS on Windows 11: Get-DnsClientDohServerAddress lists 8.8.8.8
Run Get-DnsClientDohServerAddress to confirm 8.8.8.8 and 8.8.4.4 map to the https://dns.google/dns-query template. (Image: Microsoft)

Verifying your DNS settings

Check what Windows has stored, then prove that Google is the resolver actually answering.

  1. Run ipconfig /all and read the DNS Servers lines under your adapter. They should show 8.8.8.8 and 8.8.4.4.
  2. Run nslookup -type=TXT test.dns.google.com. With no server named, nslookup asks your default resolver.
  3. Look for Thanks for using Google Public DNS. in the output. That text proves Google answered.
  4. If you see NXDOMAIN instead, another resolver answered. Recheck the adapter you edited.
  5. Run nslookup -debug -type=TXT -vc locations.dns.google.com. dns.google. to test TCP. Output that includes locations.publicdns.goog. means TCP queries reach Google too.

Google's own lookup page at dns.google also resolves any domain on request, which helps when one site fails but others load.

Verify Google DNS settings with a dns.google lookup of google.com
The dns.google page resolves any domain on request and shows the answer, its TTL and DNSSEC validation status. (Image: Google)

Security and privacy considerations

Switching resolvers moves your lookup history from your internet provider to Google. Google publishes what it keeps.

Question Google Public DNS answer
Does Google log my IP address? Yes, in temporary logs that are deleted within 24 to 48 hours, except data kept longer to fight abuse
What is kept permanently? A sample of queries with the IP address replaced by a city or region-level location
Is DNS data used for ads? No. Google states it does not use personal information from Public DNS to target ads
Is it linked to my Google account? Not correlated with other Google services, except for security and abuse work
Can others on my Wi-Fi see my lookups? Yes with plain DNS; no once DNS over HTTPS is on without plaintext fallback
Does it block malware sites? No. Google rarely blocks and is not a malware-blocking service

Is Google DNS always the best choice?

No single resolver is fastest everywhere. Distance to the serving data center decides much of the lookup time, so results differ by location and network.

Your situation Use this Why
ISP DNS is slow, fails or redirects typos Google 8.8.8.8 and 8.8.4.4 Large shared caches and no redirects
You want encrypted DNS built into Windows 11 Google, Cloudflare or Quad9 All three are on Windows' known DoH list
You want malware or adult sites blocked A filtering resolver such as Cloudflare for Families Google Public DNS does not filter
Work PC joined to a company domain Leave DNS as IT set it Internal names resolve only through company DNS servers
Every device in the house should switch Router DNS fields One change covers phones, consoles and TVs, unless your ISP locked the router

If you prefer Cloudflare, the same Windows steps apply with Cloudflare's 1.1.1.1 resolver addresses.

Reverting to default DNS settings

  1. Settings: select Edit next to DNS server assignment, choose Automatic (DHCP) and select Save.
  2. Control Panel: reopen the IPv4 and IPv6 properties, switch from Use the following DNS server addresses to the option that obtains DNS server addresses automatically, and select OK.
  3. PowerShell: run Set-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -ResetServerAddresses.
  4. Command Prompt: run netsh interface ipv4 set dnsservers name="Wi-Fi" source=dhcp, and the same with ipv6.
  5. If you used custom servers before Google, type the addresses you wrote down instead, then restart the PC if lookups still use Google.

Troubleshooting common issues with Google DNS

Hotel or airport Wi-Fi sign-in page does not appear

Manual DNS can stop the captive portal that the network uses for sign-in.

  1. Switch the connection to Automatic (DHCP).
  2. Connect and complete the sign-in page.
  3. Re-enter 8.8.8.8 and 8.8.4.4 once you are online.

DNS over HTTPS option is greyed out

The automatic template only works for servers on Windows' known list, and Windows 10 has no DoH setting.

  1. Check for typos in 8.8.8.8 and 8.8.4.4.
  2. Run Get-DnsClientDohServerAddress and confirm Google's addresses are listed.
  3. On Windows 10, use your browser's secure DNS setting instead.

DNS settings will not save or change back

The PC is managed by an organization, or the command ran without administrator rights.

  1. Rerun PowerShell or Command Prompt with Run as administrator.
  2. On a work or school PC, ask IT, because DNS may be set by policy.
  3. Make sure you edited the network profile you are connected to under Manage known networks.
Google DNS settings not saving: DNS over HTTPS Group Policy on a managed PC
On work PCs, IT can enable this policy to allow, prohibit or require DoH, which overrides locally configured DNS settings. (Image: Microsoft)

No internet after DNS change

Sites fail by name but the connection shows as connected

A mistyped address, or a network that blocks queries to Google's servers.

  1. Recheck the addresses with Get-DnsClientServerAddress.
  2. Open http://216.218.228.119/ in the browser. If that page loads but named sites do not, the DNS setup is the problem.
  3. Run nslookup -debug -type=TXT test.dns.google.com. dns.google.. A timeout means DNS traffic to Google is blocked on this network.
  4. Run tracert -d -w 2000 dns.google. If the last line is not 8.8.8.8 or 8.8.4.4, something on the path stops the traffic.
  5. Switch back to Automatic (DHCP). If sites still fail, the network itself is down, so contact your ISP or administrator.

Google DNS not updating on Windows 11

ipconfig still shows the old DNS servers

The change went to a different adapter or network profile.

  1. Run Get-DnsClientServerAddress and find the interface that is actually connected.
  2. Repeat Method 1 on that connection, then run ipconfig /all again.

Sites still resolve to old addresses

Windows or the browser is serving cached answers.

  1. Run ipconfig /flushdns to flush the DNS cache.
  2. Close and reopen the browser.
  3. Check the browser's secure DNS setting, which can send lookups to its own provider instead of Windows' servers.

One domain keeps returning an outdated answer

Google can hold an old but unexpired answer after a domain moves to new DNS hosting.

  1. Open Google's Flush Cache page at developers.google.com/speed/public-dns/cache.
  2. Flush the main domain first, then the subdomain that is wrong.

Webpages load slowly after DNS switch

Every site starts loading slowly

Your traffic may reach a Google data center far from you, so each lookup takes longer.

  1. Run tracert -d -w 2000 dns.google and look for long delays or many hops before 8.8.8.8.
  2. Note that ping and tracert only show the route; they do not measure DNS speed.
  3. Switch back to your ISP's DNS for a day and compare. Keep whichever feels faster on your network.

Lookups are slower over IPv6

IPv6 routing between your ISP and Google can be worse than IPv4.

  1. Run tracert -6 -d -w 2000 dns.google and compare it with the IPv4 trace.
  2. If IPv6 is much slower, remove Google's IPv6 pair and keep only 8.8.8.8 and 8.8.4.4.

Video or downloads come from a distant server

Some content networks do not handle Google's client-location hint correctly and return far-away addresses.

  1. Look up the slow site on dns.google and compare the address with what your ISP's DNS returns.
  2. If the ISP answer is closer, use your ISP's DNS on that network.

Key best practices for DNS changes in Windows 11

  1. Write down the current DNS addresses before you change anything.
  2. Always enter two different servers, 8.8.8.8 and 8.8.4.4, so one can take over.
  3. Change IPv6 as well as IPv4 if your connection uses IPv6.
  4. Turn on DNS over HTTPS on Windows 11 and decide deliberately about Fallback to plaintext.
  5. Run the test.dns.google.com check after every change.
  6. Leave DNS alone on work PCs joined to a company domain.
  7. Repeat the change on each Wi-Fi network, or set it once on the router.

Google DNS on Windows 11 FAQ

What are Google's DNS server addresses?

Google Public DNS uses 8.8.8.8 and 8.8.4.4 for IPv4, and 2001:4860:4860::8888 and 2001:4860:4860::8844 for IPv6. Enter one as the preferred server and the other as the alternate, and never use the same address twice.

How do I set 8.8.8.8 as DNS on Windows 11?

Open Settings > Network & internet, select your Wi-Fi or Ethernet connection, and select Edit next to DNS server assignment. Choose Manual, turn on IPv4, enter 8.8.8.8 and 8.8.4.4, and select Save.

Does Google DNS make browsing faster?

It can speed up the lookup step if your current resolver is slow or overloaded. Download speed does not change, and a Google data center far from you can make lookups slower, so compare both on your own network.

Is Google DNS safe to use?

Yes. Google Public DNS validates DNSSEC, resists spoofing and never redirects failed lookups. It does not block malware sites, and Google keeps IP-linked logs for 24 to 48 hours before deleting them.

Can I use DNS over HTTPS with Google DNS on Windows 11?

Yes. Google's 8.8.8.8 and 8.8.4.4 are on Windows 11's known DoH list, so select On (automatic template) under each address in the DNS settings. Windows 10 has no built-in DNS over HTTPS option.

How do I know Windows is using Google DNS?

Run nslookup -type=TXT test.dns.google.com in Command Prompt. If the output says Thanks for using Google Public DNS, Google answered; NXDOMAIN means another resolver is still handling your lookups.

How do I change DNS back to automatic?

Open the same DNS server assignment Edit dialog, choose Automatic (DHCP) and select Save. In PowerShell, Set-DnsClientServerAddress with -ResetServerAddresses does the same for one interface.

Should I change DNS on my router or my PC?

Change it on the router to cover every device in the house at once. Change it on the PC when you only want one computer on Google DNS, or when your ISP's router does not allow DNS changes.

Final analysis: The pros, cons, and verdict

Pros: no redirects, DNSSEC validation, built-in DNS over HTTPS support on Windows 11 and published log limits. Cons: no malware filtering, lookup history moves to Google, and speed depends on how far you are from Google's servers.

Set 8.8.8.8 and 8.8.4.4 through Settings > DNS server assignment on Windows 11, turn on DNS over HTTPS, and confirm the switch with the test.dns.google.com lookup. The Settings route is the only one that also encrypts lookups, and Google's addresses get Windows' automatic DoH template. If pages feel slower afterwards, compare against your ISP's DNS and keep whichever is faster on your network.

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

Your email address will not be published. Required fields are marked *