How to Change DNS Server Settings in Windows 11
In this article
To change DNS server settings in Windows 11, open Settings > Network & internet, select your connection type (Wi-Fi or Ethernet), click Edit next to DNS server assignment, choose Manual, turn on IPv4 or IPv6, enter the new DNS addresses, and click Save. This replaces your ISP's default DNS with a faster or more private one (like Google Public DNS or Cloudflare). You don't need any special tools—just admin rights on your PC.
What You'll Need
- A Windows 11 PC with administrator access (you'll be prompted if needed).
- An active internet connection (Wi-Fi or Ethernet).
- The DNS server addresses you want to use. Common ones: Google (8.8.8.8 and 8.8.4.4) or Cloudflare (1.1.1.1 and 1.0.0.1).
Step-by-Step
- Open Settings. Press Windows key + I on your keyboard, or click the Start button and select the gear icon.
- Go to Network & internet. In the left sidebar, click Network & internet.
- Select your connection type. Click either Wi-Fi or Ethernet, depending on how your PC connects to the internet.
- Open the connection properties. Click on the name of your connected network (for Wi-Fi, it's the SSID; for Ethernet, it's usually "Ethernet"). This opens the network properties page.
- Find DNS server assignment. Scroll down until you see DNS server assignment. Next to it, click the Edit button.
- Switch to Manual. In the pop-up window, change the dropdown from Automatic (DHCP) to Manual.
- Enable IPv4 (and optionally IPv6). Toggle the switch for IPv4 to ON. If you also want to set IPv6 DNS, toggle that as well, but most users only need IPv4.
- Enter the preferred and alternate DNS. In the Preferred DNS field, type the primary DNS (e.g., 8.8.8.8). In the Alternate DNS field, type the secondary (e.g., 8.8.4.4).
- Choose validation (optional). Under "DNS over HTTPS," you can select On (automatic template) to encrypt DNS queries. This is a privacy bonus but not required.
- Save. Click Save at the bottom. The window closes and your new DNS settings are applied immediately.
Note: Menu labels can vary slightly depending on your Windows 11 version or region, but the overall flow is the same.
Common Mistakes
- Forgetting to toggle IPv4 on. If you leave it off, the fields stay grayed out and nothing changes.
- Typing the DNS in the wrong field. Put the primary in "Preferred" and secondary in "Alternate"; swapping them usually still works but can cause confusion.
- Using a DNS address that's not valid. Double-check numbers like 8.8.8.8—a typo (e.g., 8.8.8.1) will break name resolution.
- Not saving. If you close the window without clicking Save, changes are discarded.
- Changing DNS on the wrong network. If you have both Wi-Fi and Ethernet, make sure you edit the one you're actually using.
Tips
- Use a reliable public DNS. Google (8.8.8.8 / 8.8.4.4) and Cloudflare (1.1.1.1 / 1.0.0.1) are fast and well-maintained. Quad9 (9.9.9.9) blocks malicious sites.
- Enable DNS over HTTPS (DoH). In the same settings, set "DNS over HTTPS" to On (automatic template) to encrypt your DNS queries, preventing snooping.
- Test before committing. After applying, visit a few websites to confirm everything works. You can also run
nslookup example.comin Command Prompt to verify the DNS server is responding. - Keep a note of your old DNS. If you ever need to revert to automatic, just go back and switch the dropdown to Automatic (DHCP).
- Consider setting DNS on your router instead. If you want every device on your network to use the new DNS, change it in your router's admin panel rather than on each PC.
Troubleshooting
If your internet stops working after changing DNS, try these in order:
- Double-check the addresses. Re-enter them carefully. A common mistake is typing 8.8.8.8 as 8.8.8.88.
- Restart your network adapter. Go to Settings > Network & internet > Advanced network settings > Network reset, or simply disconnect and reconnect to Wi-Fi, or unplug and replug the Ethernet cable.
- Flush the DNS cache. Open Command Prompt as administrator (right-click Start > Terminal (Admin)) and type
ipconfig /flushdns, then press Enter. - Revert to automatic. Go back to the DNS settings and switch the dropdown back to Automatic (DHCP). If that fixes it, your chosen DNS is unreachable or misconfigured.
- Try a different DNS provider. If Google doesn't work, try Cloudflare or Quad9. Some networks block certain DNS servers.
- Restart your PC. A full reboot can clear lingering network issues.
If none of that works, your router might be overriding DNS settings—check its configuration or contact your ISP for assistance.
Frequently Asked Questions
Will changing DNS make my internet faster?
Possibly. A faster DNS server can reduce the time it takes to resolve domain names, which speeds up initial page loads. But if your connection is slow due to bandwidth, DNS won't help.
Is it safe to change DNS?
Yes, as long as you use reputable public DNS servers like Google, Cloudflare, or Quad9. Avoid random DNS addresses from unknown sources, as they could be malicious.
Do I need to change both IPv4 and IPv6 DNS?
No. Most networks use IPv4, so changing only IPv4 is sufficient. If you want full coverage and your network uses IPv6, you can set both, but it's not required.
Will changing DNS affect my IP address?
No. DNS translates domain names to IP addresses; it doesn't change your device's IP address. Your IP is assigned by your router or ISP.
How do I revert to the original DNS settings?
Follow the same steps and set the dropdown back to Automatic (DHCP). Windows will then use the DNS provided by your router/ISP.
Can I set DNS for a specific app only?
No, Windows doesn't allow per-app DNS. You'd need a third-party tool or a VPN that supports split tunneling, but that's more complex than changing system-wide DNS.