Skip to content

How-ToOS

How to Change DNS Servers in Windows 11 (and Turn On DNS over HTTPS)

To change DNS in Windows 11, open Settings > Network & internet, pick Ethernet or Wi-Fi, select Edit next to DNS server assignment, switch to Manual and enter addresses such as Cloudflare's 1.1.1.1 and 1.0.0.1, Google's 8.8.8.8 or Quad9's 9.9.9.9. Turn on DNS over HTTPS, check with ipconfig /all, and revert if public Wi-Fi logins fail.

By , Editorial team

3 min read

How to Change DNS Servers in Windows 11 (and Turn On DNS over HTTPS)

Every time you type a web address or a game client looks up a server, your PC asks a DNS server to turn that name into an IP address. By default Windows uses whatever DNS server your router hands out, which is usually your broadband provider's. Switching to a public DNS service such as Cloudflare, Google Public DNS or Quad9 can add malware blocking or encryption, and it's a useful step when websites fail to load but your connection is otherwise fine.

Forge PC hasn't tested or benchmarked these DNS services. This guide is based on Cloudflare's, Google's and Quad9's official setup pages and Microsoft's documentation, as checked on 17 November 2026. Be realistic about what DNS does: it affects how quickly names are looked up, not your in-game ping once you're connected to a server. For lag, see how to fix high ping and packet loss.

Service

IPv4 addresses

IPv6 addresses

Notes

Cloudflare 1.1.1.1

1.1.1.1 and 1.0.0.1

2606:4700:4700::1111 and 2606:4700:4700::1001

Supports DNS over HTTPS and DNS over TLS

Cloudflare 1.1.1.1 for Families (malware blocking)

1.1.1.2 and 1.0.0.2

2606:4700:4700::1112 and 2606:4700:4700::1002

Adds 1.1.1.3/1.0.0.3 to also block adult content

Google Public DNS

8.8.8.8 and 8.8.4.4

2001:4860:4860::8888 and 2001:4860:4860::8844

Quad9

9.9.9.9 and 149.112.112.112

2620:fe::fe and 2620:fe::9

Quad9's recommended, malware-blocking service with DNSSEC validation

Before changing anything, Google recommends writing down your current DNS settings so you can put them back.

Change DNS in Windows 11 Settings

Cloudflare's Windows 11 instructions work for any provider:

  1. Open Start > Settings > Network & internet.

  2. Select the adapter you use, such as Ethernet or Wi-Fi.

  3. Next to DNS server assignment, select Edit.

  4. Change Automatic (DHCP) to Manual.

  5. Turn on IPv4 and enter the preferred and alternate DNS addresses from the table.

  6. If your connection uses IPv6, turn on IPv6 and enter the matching IPv6 addresses.

  7. Select Save.

Do this for each adapter you use. If you switch between Wi-Fi and Ethernet, both need changing.

Turn on encrypted DNS (DNS over HTTPS)

Normal DNS requests travel as plain text, so anyone on the network path can see which sites you look up. DNS over HTTPS (DoH) wraps them in an encrypted HTTPS connection. Microsoft's documentation explains that, in the same Edit DNS settings screen, Windows can use DoH when the preferred or alternate server is on its list of known DoH servers. You can then choose:

  • Encrypted only (DNS over HTTPS): DNS fails if the server can't use DoH

  • Encrypted preferred, unencrypted allowed: Windows tries DoH but falls back to plain DNS without telling you

  • Unencrypted only: traditional DNS

Encrypted only is the stronger choice when you're using Cloudflare, Google or Quad9. If a captive portal at a hotel or café won't load, switch back to automatic temporarily.

Use PowerShell instead

If you're comfortable with the command line, Microsoft's Set-DnsClientServerAddress cmdlet does the same job. Open Terminal as administrator, run Get-NetAdapter to find your adapter's index number, then run, for example:

Set-DnsClientServerAddress -InterfaceIndex 12 -ServerAddresses ("1.1.1.1","1.0.0.1")

Replace 12 with your adapter's index. To go back to your router's DNS, Microsoft's documentation shows:

Set-DnsClientServerAddress -InterfaceIndex 12 -ResetServerAddresses

Check it worked, and clear the cache

Open Command Prompt and run ipconfig /all. Microsoft's ipconfig documentation says this shows the full configuration of every adapter, including its DNS servers. If sites still resolve to old addresses, run ipconfig /flushdns to clear Windows' DNS cache.

When to change DNS on your router instead

Changing DNS in Windows affects only that PC. If you want every device on your network to use the same service, change it in your router's settings instead; Google and Cloudflare both publish router instructions. Some broadband routers don't allow it, in which case per-device settings are the way to go.

If something breaks

Cloudflare warns that setting DNS manually can stop you connecting to public Wi-Fi networks with captive portals, the login pages many hotels and cafés use. Set DNS back to Automatic (DHCP), connect and sign in, then switch it back. If Wi-Fi keeps dropping out altogether, DNS probably isn't the cause; try our Wi-Fi disconnecting fix guide.

Our verdict

To change DNS in Windows 11, go to Settings > Network & internet, choose your adapter, select Edit next to DNS server assignment, switch to Manual and enter a provider's addresses, such as Cloudflare's 1.1.1.1 and 1.0.0.1 or Quad9's 9.9.9.9. Turn on DNS over HTTPS for privacy, check the result with ipconfig /all, and set it back to Automatic if a public Wi-Fi login page won't load. It won't lower your in-game ping. Forge PC hasn't tested these services.

The bottom line

To change DNS in Windows 11, go to Settings > Network & internet, choose your adapter, select Edit next to DNS server assignment, switch to Manual and enter a provider's addresses, such as Cloudflare's 1.1.1.1 and 1.0.0.1 or Quad9's 9.9.9.9. Turn on DNS over HTTPS for privacy, check the result with ipconfig /all, and set it back to Automatic if a public Wi-Fi login page won't load. It won't lower your in-game ping. Forge PC hasn't tested these services.

Sources

  1. 01Cloudflare, Set up 1.1.1.1 on Windows
  2. 02Google, Get Started with Google Public DNS
  3. 03Quad9, Service Addresses and Features
  4. 04Microsoft Learn, Secure DNS Client over HTTPS (DoH)
  5. 05Microsoft Learn, Set-DnsClientServerAddress
  6. 06Microsoft Learn, ipconfig

About the author

Forge PC Staff

Editorial team

The shared byline for articles researched, written and edited by the Forge PC editorial team. How we source, check and correct our work is set out in our editorial policy.

More from Forge PC Staff

Read next

How to Use System Restore in Windows 11: Turn It On, Create a Restore Point and Roll Back

How-To

How to Use System Restore in Windows 11: Turn It On, Create a Restore Point and Roll Back

Microsoft says System Protection isn't on by default. Search for Create a restore point, select your C: drive, choose Configure and turn it on, then create a restore point before installing drivers or tools. To roll back, run rstrui.exe, or use Troubleshoot > Advanced options > System Restore in Windows RE. Personal files aren't affected, but it isn't a backup.

Forge PC Staff3 min

Best Wi-Fi 7 PCIe Card for Desktop PCs in 2026

Best Picks

Best Wi-Fi 7 PCIe Card for Desktop PCs in 2026

The TP-Link Archer TBE550E is the best Wi-Fi 7 PCIe card for most desktops: it works on AMD systems, supports 320MHz and MLO and was about £85 at Scan (17 Nov 2026), but it's Windows 11 only. The ASUS PCE-BE92BT (about £51) suits recent Intel PCs only. The ASUS PCE-BE6500 (about £34) is the budget pick.

Forge PC Staff4 min

How to Use Live Captions and Translation in Windows 11

How-To

How to Use Live Captions and Translation in Windows 11

Press Windows + Ctrl + L to turn on live captions in Windows 11 22H2 or later, download the language files, then dock or float the captions and pick a style. Captions are generated on the device and work offline. On a Copilot+ PC with 24H2 or later, live captions can translate from over 40 languages into English and 27 into Chinese (Simplified).

Forge PC Staff3 min

How to Manage Ollama Models: List, Remove and Move Them to Another Drive

How-To

How to Manage Ollama Models: List, Remove and Move Them to Another Drive

Run ollama ls to list your models, ollama ps to see what's loaded, ollama stop to unload one and ollama rm to delete it. On Windows, models are stored in C:\Users\%username%\.ollama\models; to move them, quit Ollama, set an OLLAMA_MODELS user environment variable to a folder on a bigger drive and restart Ollama.

Forge PC Staff3 min