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.
Popular public DNS servers
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:
Open Start > Settings > Network & internet.
Select the adapter you use, such as Ethernet or Wi-Fi.
Next to DNS server assignment, select Edit.
Change Automatic (DHCP) to Manual.
Turn on IPv4 and enter the preferred and alternate DNS addresses from the table.
If your connection uses IPv6, turn on IPv6 and enter the matching IPv6 addresses.
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.