How to change DNS on Windows 11 and 10
Changing DNS can fix sites that won’t load, block known malware domains, or make lookups a little faster. Here’s how to do it on Windows. Not sure which server to choose? See public DNS servers compared. Common options:
- Cloudflare
1.1.1.1,1.0.0.1· IPv62606:4700:4700::1111- Google Public DNS
8.8.8.8,8.8.4.4· IPv62001:4860:4860::8888- Quad9 (blocks known malware)
9.9.9.9,149.112.112.112· IPv62620:fe::fe
Windows 11
- Open Settings → Network & internet.
- Click Wi‑Fi → Hardware properties (or Ethernet for a cable).
- Next to DNS server assignment, click Edit and choose Manual.
- Turn on IPv4. Enter a Preferred DNS (e.g.
1.1.1.1) and an Alternate DNS (e.g.1.0.0.1). - Optional: set DNS over HTTPS to On (automatic template) to encrypt lookups.
- Repeat for IPv6 if your connection has it, then click Save.
Windows 10
- Press Win + R, type
ncpa.cpland press Enter. - Right-click your adapter → Properties.
- Select Internet Protocol Version 4 (TCP/IPv4) → Properties.
- Choose Use the following DNS server addresses, enter both servers and click OK.
Command line (admin)
netsh interface ip set dns name="Wi-Fi" static 1.1.1.1 netsh interface ip add dns name="Wi-Fi" 1.0.0.1 index=2
Replace “Wi-Fi” with your adapter name (netsh interface show interface lists them).
Flush the DNS cache
Run ipconfig /flushdns so Windows forgets old answers.
Check it worked
Run nslookup example.com. The Server line should show your new DNS. You can also compare answers from a public resolver with the FernTool DNS lookup.
Want every device at home to use the new DNS? Change it on the router instead. If you use a VPN, keep the VPN’s DNS to avoid leaks (check with the VPN leak test).
Frequently asked questions
How do I change DNS to 1.1.1.1 on Windows 11?
Settings → Network & internet → Wi-Fi or Ethernet → Hardware properties → DNS server assignment → Edit → Manual, turn on IPv4, enter 1.1.1.1 and 1.0.0.1, and save.
Does changing DNS make internet faster?
It can make looking up websites slightly quicker and fix some loading errors, but it does not increase your download speed.
How do I reset DNS to automatic?
Go back to DNS server assignment, click Edit and choose Automatic (DHCP), then run ipconfig /flushdns.
More guides
- What is IPv6?
- How to find your IP address (every device)
- Public vs private IP address
- What is CGNAT (carrier-grade NAT)?
- How to hide your IP address
- How to find your PS5 IP address
- How to find your Xbox IP address
- How to find your smart TV’s IP address
- How to find your router’s IP address
- What is a good internet speed?
- Why is my internet slow at night?
- How to change DNS on a Mac
- How to change DNS on your router
- Public DNS servers compared
- Why port forwarding isn’t working
- Keeping your internet on during load-shedding
- Fibre vs LTE vs 5G in South Africa
- How to check if a port is open
- How to create a strong password
- What is a user agent?
- How to find your MAC address
- What is a good ping?
- What is an IP address?