QuarkVPN

How to Change DNS Settings on Windows 11 and 10

Change the DNS servers on the Wi-Fi or Ethernet connection you want to use. Note whether DNS is currently automatic or manual, and save any existing server addresses so you can restore them. For a work or school PC, use the DNS settings your administrator provides.

Change DNS on Windows 11

  1. Wi-Fi. Open Settings and choose Network & internet, then Wi-Fi. Open the properties for your connected Wi-Fi network. Ethernet. Under Network & internet, open Ethernet and select the connected network if prompted.
  2. Next to DNS server assignment, select Edit. Choose Manual. Leave the separate IP assignment setting as it was.
  3. Turn on IPv4 and enter the provider's Preferred DNS and Alternate DNS addresses if supplied. If you also want to set IPv6 DNS and your network supports it, enter the provider's IPv6 addresses under IPv6. Select Save.

For example, Cloudflare lists 1.1.1.1 and 1.0.0.1 as its standard IPv4 pair. Use the addresses for the resolver you intend to use. See Cloudflare's Windows setup and DNS address examples.

Change DNS on Windows 10

  1. Go to Settings, Network & Internet, then Status. Open Change adapter options to see the Network Connections window.
  2. Right-click Wi-Fi for your active wireless adapter or Ethernet for your active wired adapter. Open Properties, select Internet Protocol Version 4 (TCP/IPv4), and open its Properties.
  3. Choose Use the following DNS server addresses and enter your preferred and alternate DNS addresses. Leave the IP address controls as they were. Select OK to save. If you also need to configure IPv6 DNS, use the Internet Protocol Version 6 (TCP/IPv6) properties for that adapter.

Verify the configured DNS server and a lookup

  1. Open Command Prompt and run ipconfig /all. In the block for the active Wi-Fi or Ethernet adapter, find DNS Servers and compare the addresses with the ones you entered.
  2. Run nslookup example.com. Read Server and Address at the top to see which default resolver that command used. The addresses under the domain name farther down belong to the answer. If the server name says Unknown but the lookup succeeds, compare the server IP.
  3. If the result differs, check that you edited the active adapter and the intended IPv4 or IPv6 settings. A VPN or your browser's Secure DNS can use a different resolver. For browser results with a VPN on and off, follow the VPN DNS leak check steps.

Read Microsoft's nslookup reference for how the command selects a server. For what websites see after a DNS change, see whether changing DNS changes your public IP. For a Mac, follow the macOS DNS verification steps.

Why won't websites load after I change DNS on Windows?

Verify the DNS lookup on the active adapter first. Keep the same Wi-Fi or Ethernet connection while you compare results.

  • The lookup times out. Check the DNS addresses for typos and confirm the network allows that resolver.

    Restore your previous DNS settings by choosing automatic DNS if it was enabled before or reentering the previous manual addresses. Repeat the same lookup and reopen the same sites.

  • The lookup works but websites still fail. Try the same site in another browser. Check the affected browser's Secure DNS setting and whether a VPN or proxy is active. A successful command-line lookup confirms that test resolved the name, while the browser may use a different resolver.
  • The previous DNS setting also fails. Try another device on the same network to see whether the problem affects more than the PC. For a work or school network, ask the administrator which DNS servers to use.

See Microsoft's DNS troubleshooting examples for incorrect or unreachable DNS servers.

When should you flush the DNS cache on Windows?

On Windows 11 and 10, clearing the DNS cache can help if an app still uses an old address for a site or keeps failing to find it after you have verified the DNS settings. Open Command Prompt as administrator and run ipconfig /flushdns. This clears saved lookup results in the Windows DNS client, including failed lookups. Your configured DNS servers stay the same. See Microsoft's ipconfig reference.

Retry the affected app and repeat the resolver checks above. If only your browser reports a different resolver, check its Secure DNS setting. A browser using its own DNS provider can still show different results after the Windows cache has cleared.

Restore automatic DNS on Windows

  1. Windows 11. Return to the same connection's DNS server assignment, select Edit, then choose Automatic (DHCP) and save.
  2. Windows 10. Open the same adapter's TCP/IPv4 properties and choose Obtain DNS server address automatically. Repeat for TCP/IPv6 if you changed its DNS settings. Select OK.
  3. If the connection originally used manual DNS, restore the values you recorded. Reconnect to the same network if needed, then repeat the adapter and lookup checks. With automatic DNS, the router or network may supply a DNS forwarder address.

To have the network assign your PC's local address again, follow the steps to restore automatic IP addressing.