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.

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.
- Open network settings: select Start > Settings > Network & internet.
- Select Ethernet, or select Wi-Fi > Manage known networks and choose your network. This page holds the adapter properties for that connection.
- Scroll to DNS server assignment and select Edit to edit the adapter DNS settings.
- Change Automatic (DHCP) to Manual, then turn on IPv4.
- Input the Google DNS addresses: type 8.8.8.8 in Preferred DNS and 8.8.4.4 in Alternate DNS.
- Select Save.
- 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 |

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.
- Open Control Panel > Network and Internet > Network and Sharing Center > Change adapter settings.
- Right-click Wi-Fi or Ethernet and select Properties. Approve the administrator prompt if it appears.
- On the Networking tab, select Internet Protocol Version 4 (TCP/IPv4), then Properties.
- Select Advanced and open the DNS tab. Note any listed addresses, remove them and select OK.
- Choose Use the following DNS server addresses.
- Type 8.8.8.8 in Preferred DNS server and 8.8.4.4 in Alternate DNS server, then select OK.
- 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.
- In PowerShell, run
Get-DnsClientServerAddress. - Note the InterfaceAlias of the connection you use, such as
Wi-FiorEthernet, and write down its current servers. - In Command Prompt,
netsh interface ipv4 show dnsserverslists the same interfaces.
Set DNS servers via PowerShell
Set-DnsClientServerAddress stores static servers that override the DNS your router assigns.
- Run
Set-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -ServerAddresses ("8.8.8.8","8.8.4.4"). - Add
-Validateif you want Windows to check that both servers respond before it saves them. - 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.
- Run
netsh interface ipv4 set dnsservers name="Wi-Fi" source=static address=8.8.8.8 register=primary. - Run
netsh interface ipv4 add dnsservers name="Wi-Fi" address=8.8.4.4 index=2. - For IPv6, run the same two lines with
ipv6and the addresses2001:4860:4860::8888and2001:4860:4860::8844.
Confirm and test
The set commands print nothing when they succeed.
- Run
Get-DnsClientServerAddress -InterfaceAlias "Wi-Fi"and check that 8.8.8.8 and 8.8.4.4 are listed. - Run
ipconfig /flushdnsso Windows drops answers cached from the old server. - 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.
- Open Settings > Network & internet, select your connection and select Edit next to DNS server assignment.
- Keep Manual and IPv4 on, with 8.8.8.8 and 8.8.4.4 entered.
- Under each address, set DNS over HTTPS to On (automatic template).
- Leave Fallback to plaintext off for strict encryption, or turn it on so lookups still work if HTTPS fails.
- Repeat for IPv6 if you entered Google's IPv6 pair.
- 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.

Verifying your DNS settings
Check what Windows has stored, then prove that Google is the resolver actually answering.
- Run
ipconfig /alland read the DNS Servers lines under your adapter. They should show 8.8.8.8 and 8.8.4.4. - Run
nslookup -type=TXT test.dns.google.com. With no server named, nslookup asks your default resolver. - Look for Thanks for using Google Public DNS. in the output. That text proves Google answered.
- If you see NXDOMAIN instead, another resolver answered. Recheck the adapter you edited.
- 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.

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
- Settings: select Edit next to DNS server assignment, choose Automatic (DHCP) and select Save.
- 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.
- PowerShell: run
Set-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -ResetServerAddresses. - Command Prompt: run
netsh interface ipv4 set dnsservers name="Wi-Fi" source=dhcp, and the same withipv6. - 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.
- Switch the connection to Automatic (DHCP).
- Connect and complete the sign-in page.
- 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.
- Check for typos in 8.8.8.8 and 8.8.4.4.
- Run
Get-DnsClientDohServerAddressand confirm Google's addresses are listed. - 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.
- Rerun PowerShell or Command Prompt with Run as administrator.
- On a work or school PC, ask IT, because DNS may be set by policy.
- Make sure you edited the network profile you are connected to under Manage known networks.

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.
- Recheck the addresses with
Get-DnsClientServerAddress. - Open
http://216.218.228.119/in the browser. If that page loads but named sites do not, the DNS setup is the problem. - Run
nslookup -debug -type=TXT test.dns.google.com. dns.google.. A timeout means DNS traffic to Google is blocked on this network. - 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. - 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.
- Run
Get-DnsClientServerAddressand find the interface that is actually connected. - Repeat Method 1 on that connection, then run
ipconfig /allagain.
Sites still resolve to old addresses
Windows or the browser is serving cached answers.
- Run
ipconfig /flushdnsto flush the DNS cache. - Close and reopen the browser.
- 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.
- Open Google's Flush Cache page at developers.google.com/speed/public-dns/cache.
- 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.
- Run
tracert -d -w 2000 dns.googleand look for long delays or many hops before 8.8.8.8. - Note that ping and tracert only show the route; they do not measure DNS speed.
- 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.
- Run
tracert -6 -d -w 2000 dns.googleand compare it with the IPv4 trace. - 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.
- Look up the slow site on dns.google and compare the address with what your ISP's DNS returns.
- If the ISP answer is closer, use your ISP's DNS on that network.
Key best practices for DNS changes in Windows 11
- Write down the current DNS addresses before you change anything.
- Always enter two different servers, 8.8.8.8 and 8.8.4.4, so one can take over.
- Change IPv6 as well as IPv4 if your connection uses IPv6.
- Turn on DNS over HTTPS on Windows 11 and decide deliberately about Fallback to plaintext.
- Run the
test.dns.google.comcheck after every change. - Leave DNS alone on work PCs joined to a company domain.
- 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.





