How to Change DNS on One Windows 10 PC and Check It Works

Last updated on November 13th, 2026 at 04:03 pm

Sam’s laptop is on a home network where the router’s DNS answers slowly and blocks a site Sam needs for work. Rather than changing the router, Sam can point only that Windows 10 laptop at a public resolver. The fastest way: press Windows logo key + R, type ncpa.cpl, right-click the connection, select Properties, open Internet Protocol Version 4 (TCP/IPv4), choose Use the following DNS server addresses, type two servers, and select OK.

Applies to: Windows 10 (Home and Pro).

Write down what Windows 10 uses now

DNS (Domain Name System) is the service that turns a name such as example.com into the numeric address your PC actually connects to. Your PC normally gets its DNS servers from the router through DHCP, the service that hands out network settings automatically. Before you replace them, record the current values so you can tell later whether the change took effect, and so you can put them back if a home device stops working.

  1. Type cmd in the search box on the taskbar and open Command Prompt.
  2. Run the command below and find the adapter you’re connected with (usually Wireless LAN adapter Wi-Fi or Ethernet adapter Ethernet).
  3. Copy the lines next to DNS Servers into a note. If the first entry is your router’s address (often something like 192.168.1.1), the router is passing your internet provider’s DNS along.
ipconfig /all

Each adapter keeps its own DNS settings. If the laptop uses Wi-Fi at home and a cable at the office, the Wi-Fi change does nothing for the Ethernet adapter, and the reverse is also true.

Change only the DNS in adapter properties

This is the route to use on Windows 10 when you want to change DNS and leave everything else automatic. Your PC keeps getting its IP address from the router; only the name servers change. You need an administrator account, or you’ll be asked for an administrator password.

  1. Press Windows logo key + R, type ncpa.cpl, and press Enter. You can also go to Control Panel > Network and Internet > Network and Sharing Center > Change adapter settings.
  2. Right-click Wi-Fi or Ethernet (whichever is connected) and select Properties. Select Yes if User Account Control asks.
  3. On the Networking tab, select Internet Protocol Version 4 (TCP/IPv4) and then Properties. The other options in that window are covered in getting to the advanced TCP/IP settings in Windows 10.
Windows 10 Ethernet Properties with Internet Protocol Version 4 selected and the Properties button highlighted
Select Internet Protocol Version 4 (1), then Properties (2).
  1. Leave Obtain an IP address automatically as it is, and select Use the following DNS server addresses.
  2. Type the first server in Preferred DNS server and the second in Alternate DNS server. Windows asks the preferred server first and uses the alternate when the first doesn’t respond.
  3. Select OK, then Close. The change applies straight away; no restart is needed.
Windows 10 IPv4 Properties with Use the following DNS server addresses selected and two DNS servers entered
Enter the DNS servers (1) and select OK (2). The addresses shown are examples.

Double-check every digit before you select OK. One wrong number leaves the PC with no working DNS, and web pages stop loading even though the connection icon still looks fine.

Add a third server or set IPv6 DNS

The main IPv4 window holds only two servers. To add more, select Advanced in the IPv4 properties window, open the DNS tab, and use Add. Windows works down the list from the top, so use the arrow buttons to put your first choice at the top.

If your connection has IPv6 (many home broadband lines do), Windows can send lookups to an IPv6 DNS server from your provider even after you’ve changed the IPv4 servers. To keep everything on the same resolver, go back to the adapter’s Properties, select Internet Protocol Version 6 (TCP/IPv6), select Properties, and enter the provider’s IPv6 addresses the same way. Google documents this IPv4 and IPv6 sequence, including the Advanced DNS tab, in its Google Public DNS setup instructions.

Public resolvers and their addresses

These are the standard addresses each provider lists. Use both addresses from the same provider so the alternate behaves like the preferred one.

ProviderIPv4 (preferred, alternate)IPv6 (preferred, alternate)Notes
Cloudflare1.1.1.1, 1.0.0.12606:4700:4700::1111, 2606:4700:4700::1001No content filtering on these addresses
Google Public DNS8.8.8.8, 8.8.4.42001:4860:4860::8888, 2001:4860:4860::8844No filtering
Quad99.9.9.9, 149.112.112.1122620:fe::fe, 2620:fe::9Blocks domains on its malware threat lists

Some providers also run separate family or filtered addresses that block adult or malicious sites. Take those addresses from the provider’s own website rather than a list on another page, because they’re different from the ones above.

Why the Settings app asks for more than DNS

Windows 10 also has a DNS field in Settings, but it’s tied to a full static setup. Go to Start > Settings > Network & Internet. For Wi-Fi, select Wi-Fi > Manage known networks and choose your network; for a cable, select Ethernet and choose the connected network. Next to IP assignment, select Edit.

Here’s the catch. Switching Edit IP settings from Automatic (DHCP) to Manual and turning on IPv4 asks for an IP address, subnet prefix length and gateway as well as the Preferred DNS and Alternate DNS. Fill those in wrongly and the PC loses its connection; fill them in correctly and the laptop keeps that fixed address even on networks where it doesn’t fit. That’s why the adapter properties route above is the better choice for a DNS-only change on Windows 10. Microsoft documents this Settings route in Essential network settings and tasks in Windows.

The same Microsoft page notes that the DNS over HTTPS (encrypted DNS) option isn’t available in Windows 10, so you won’t find an encryption choice next to these fields. If encrypted lookups matter to you, your browser’s own secure DNS setting is the place to look on Windows 10.

Set DNS with PowerShell or netsh

Commands are handy when you set up several PCs or want the same change on Wi-Fi and Ethernet at once. Right-click Start, select Windows PowerShell (Admin), and select Yes. Run from a normal window, the change is likely to be refused.

First list your adapters so you have the exact name:

Get-NetAdapter

Then set the servers with Set-DnsClientServerAddress. This example points the Wi-Fi adapter at Quad9:

Set-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -ServerAddresses ("9.9.9.9","149.112.112.112")

Read the result back for IPv4 only:

Get-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -AddressFamily IPv4

Older scripts often use netsh instead. These commands set a first server and add a second one on an adapter named Ethernet. Microsoft now recommends PowerShell over netsh for this kind of work, but both still run on Windows 10:

netsh interface ip set dns name="Ethernet" static 8.8.8.8
netsh interface ip add dns name="Ethernet" 8.8.4.4 index=2

To see adapter names in netsh terms, run netsh interface ipv4 show interfaces.

Prove the new server is answering

Windows keeps recently looked-up names in a cache, so clear it first. In Command Prompt run ipconfig /flushdns, or in PowerShell run Clear-DnsClientCache; both do the same job.

Then use nslookup. Here’s how Sam checked the Quad9 change:

  1. Ran ipconfig /all again. The DNS Servers lines for Wi-Fi now showed 9.9.9.9 and 149.112.112.112 instead of the router’s address.
  2. Ran nslookup example.com. The Server and Address lines at the top name the DNS server that answered, and they showed the Quad9 address.
  3. Ran nslookup example.com 9.9.9.9, which asks Quad9 directly. Getting an answer here but not in step 2 would mean Windows was still asking another server.

The command syntax is in Microsoft’s nslookup reference. If the top lines still show your router, you most likely changed a different adapter, or one of the overrides below is in play.

When the old DNS keeps answering

  • A VPN is connected. Most VPN apps use their own DNS servers while connected. Disconnect and test again.
  • Your browser has its own setting. Edge, Chrome and Firefox each have a secure DNS option in their privacy or security settings. When it names a provider, websites in that browser use it instead of Windows. (DNS doesn’t decide which browser opens your links, though; for that, change the default browser in Windows 10.)
  • IPv6 still points at your provider. Set IPv6 DNS as shown above. As a short test only, you can also try disabling IPv6 in Windows 10 and see whether the right server answers.
  • Security software is filtering DNS. Some internet security suites route lookups through their own service. Check its web protection settings.
  • The setting keeps reverting. On a company-managed PC, policy can overwrite DNS at the next sign-in or network change.

Work PCs, routers and home device names

Don’t change DNS on a work or school laptop without asking IT. Those PCs often have to use the company’s DNS servers to find internal sites, file shares and sign-in services, and a public resolver doesn’t know those names.

At home, the router’s DNS sometimes knows local names, such as a printer or NAS (network storage drive) you reach by name. After switching to a public resolver, those names may stop working while websites load fine. Connect to the device by its IP address, or point a single name at a fixed address by editing the hosts file in Windows 10. The file works the same way if you later move to a new PC, as shown for the hosts file in Windows 11.

If every device in the house should use the new resolver, change the DNS setting in the router instead; the router’s manual or admin page shows where. Change it on the PC when only one machine needs it, as in Sam’s case.

A new resolver can shave a little time off the start of each page load, but it doesn’t raise your download speed. For the bigger wins, see increasing internet speed in Windows 10.

Undo the change

  1. Open ncpa.cpl, right-click the adapter, and select Properties.
  2. Open Internet Protocol Version 4 (TCP/IPv4) > Properties and select Obtain DNS server address automatically. Do the same under IPv6 if you changed it.
  3. Select OK, then run ipconfig /flushdns.

In PowerShell, Set-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -ResetServerAddresses returns that adapter to the DNS servers the router provides. If you also set a fixed IP address in Settings, switch Edit IP settings back to Automatic (DHCP), or follow enabling DHCP in Windows 10. When nothing loads even after that, resetting network settings in Windows 10 puts every adapter back to its defaults.

DNS change questions

Can I turn on encrypted DNS in Windows 10 Settings?

No. Microsoft states the DNS over HTTPS option isn’t available in Windows 10. It exists in Windows 11 Settings. On Windows 10, use the secure DNS option in your browser for web traffic.

What does “timed out” or “No response from server” mean in nslookup?

Both are among the errors Microsoft lists for nslookup, and in practice they mean the server you asked didn’t reply. Check the address for a typo, try the alternate address, and disconnect any VPN that could be blocking outside DNS traffic before you assume the provider is down.

Can a DNS change block ads?

Only if the resolver you pick filters ad domains. The standard addresses in the table above don’t block ads; some providers offer separate filtering addresses, listed on their own sites.

Does the provider see the sites I visit?

It sees the names you look up, the same way your internet provider’s DNS did before. Read the provider’s privacy policy before you switch.