Open the IPv4 properties of a Windows network adapter and plenty of people have no idea what to put in the Preferred DNS and Alternate DNS fields, so they copy a couple of addresses off the web and paste them in. But entering an address is not the same as the setting taking effect. The browser, IPv6, and the router's own configuration can all change the path a domain lookup actually takes.

On an ordinary home broadband connection where everything already works, leaving DNS set to obtain the address automatically is the sensible default. If you are hitting lookup timeouts or some pages simply will not load, that is when manually setting a public DNS server is worth trying.
Here are a few commonly used public DNS addresses:
| DNS Provider | Preferred DNS | Alternate DNS |
|---|---|---|
| Alibaba Cloud DNS | 223.5.5.5 | 223.6.6.6 |
| 114DNS | 114.114.114.114 | 114.114.115.115 |
| Google DNS | 8.8.8.8 | 8.8.4.4 |
| Cloudflare DNS | 1.1.1.1 | 1.0.0.1 |
On broadband in mainland China, Alibaba Cloud DNS or 114DNS is a reasonable place to start. Speed and reachability differ from one region and carrier to the next, and no single pair of addresses is right for every network.
On devices that sit on an internal network, such as company or school machines, it is better not to swap DNS on a whim. Doing so can affect access to internal business systems, shared files, and other LAN services.
The preferred DNS server is normally the one the system queries first. When a lookup times out or the server does not respond, the system may fall back to the alternate one. The exact behaviour depends on the operating system's resolver and on the state of the network.
The point of having two addresses is to keep name resolution available, not to add the two together into a faster connection.
Some people put the same IP address in both fields. Lookups will still work, but the second entry stops serving as a fallback. Others enter the router's gateway address, 192.168.1.1 for example, as the alternate. If that router is itself using DNS handed out by the carrier, some queries can end up routed back through the carrier's servers anyway.
As a rule, use two different addresses from the same provider. It makes tracking down resolution problems later considerably easier.
Both Windows 10 and Windows 11 let you change DNS through the network adapter.
Press Win + R, type ncpa.cpl, and press Enter. Find the Ethernet or Wi-Fi adapter you are actually using. Right-click it, open Properties, then double-click "Internet Protocol Version 4 (TCP/IPv4)".
Select "Use the following DNS server addresses", fill in the preferred and alternate addresses, and confirm to save.
When you are done, open Command Prompt and run:
ipconfig /flushdnsThis clears the local Windows DNS cache, so old records do not skew whatever you check next.
You can also run the following in PowerShell:
Get-DnsClientServerAddressThe output shows the IPv4 and IPv6 DNS addresses configured on each network interface, which lets you confirm that the adapter you edited is the one currently in use.
In practice, the system configuration and what a web-based check reports do not always agree, and that is fairly common.
The easiest thing to overlook is the browser's secure DNS feature. Chrome, Edge, and Firefox all support encrypted DNS resolution. If the browser has its own resolver configured, the DNS used when loading pages may not match the system setting at all.
IPv6 is worth checking too. Changing the DNS address for IPv4 does not change the related IPv6 settings. On a dual-stack network, the system may still be using DNS servers obtained over IPv6.
On top of that, virtual adapters, network management software, and the router's DNS forwarding can all shape the path a lookup finally takes.
When troubleshooting, there is no need to rush into trying another set of DNS addresses. Confirm which network interface is in use, check the browser settings, and look at the IPv6 configuration first. That usually gets you to the cause faster.
Before changing anything, open ToDetect's DNS leak test page and note the resolver IP address, provider, and location it reports.
After applying the new DNS settings, flush the system cache, restart the browser, and run the test again. The values worth comparing are who the resolver belongs to and whether the original provider still shows up.
One caveat: the IP address shown on a DNS leak test page will not necessarily be identical to the DNS address you typed in. Public DNS services can use different query endpoints and recursive egress points, so a different address is not on its own proof that the setting failed.
In the same way, a resolver sitting in a different region from your network egress IP does not automatically mean a DNS leak has occurred. The distribution of public DNS nodes, network forwarding, and error in IP geolocation can all produce that picture.
What actually matters in judging a leak is whether real queries depart from the intended resolution path, not whether two IP addresses or two regions happen to line up.
You can, but if that server stops responding, the lack of a fallback resolver can affect whether pages load.
No. Carrier resolvers are usually deployed close to their subscribers, and in some regions lookup latency is actually lower. Pick based on how your own connection performs.
It is worth running once. After switching broadband, changing routers, or adjusting the browser's secure DNS setting, you can also revisit ToDetect to review the resolution path and confirm the current configuration is what you expect.
Efficiently solve multi-account management, environment isolation, and account security