How to Change DNS on Windows 11: Step-by-Step Guide

Sunucun 3 min read

Changing DNS on Windows 11 means replacing the server your computer uses to translate domain names into IP addresses, from your ISP’s server to a provider such as Cloudflare, Google or Quad9. Common reasons are some sites not opening, DNS-related slowness or wanting to use encrypted DNS.

Illustration: DNS

In this article we explain step by step how to change DNS on Windows 11 from the Settings app, Control Panel and the command line, and how to turn on encrypted DNS (DNS over HTTPS).

Common DNS Addresses

ProviderPreferred DNSAlternate DNS
Cloudflare1.1.1.11.0.0.1
Google8.8.8.88.8.4.4
Quad99.9.9.9149.112.112.112
Yandex (Basic)77.88.8.877.88.8.1

Method 1: Changing DNS in the Settings App

  1. Open Settings with Win + I and click Network & internet.
  2. Select the connection you use: for Wi-Fi, Wi-Fi → [network name] properties or Hardware properties; for a wired connection, Ethernet.
  3. Click the Edit button on the DNS server assignment line.
  4. In the window that opens, choose Manual instead of Automatic (DHCP).
  5. Turn on the IPv4 switch and type the addresses in the Preferred DNS and Alternate DNS fields.
  6. Do the same for IPv6 if you like, then click Save.

How to Turn On Encrypted DNS (DNS over HTTPS)

Windows 11 can encrypt queries over HTTPS with supported DNS providers:

  1. After entering the DNS address in the steps above, turn on the DNS over HTTPS option.
  2. For well-known providers such as Cloudflare, Google and Quad9, On (automatic template) fills in the template automatically.
  3. After saving, you should see Encrypted next to the DNS address in the connection properties.

Some corporate and school networks may block encrypted DNS; if you have connection problems, turn the option off.

Method 2: Changing DNS in Control Panel

  1. Press Win + R, type ncpa.cpl and press Enter.
  2. Right-click the network adapter you use and choose Properties.
  3. Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
  4. Select Use the following DNS server addresses, enter the addresses and click OK.

Method 3: With PowerShell or Command Prompt

First find your adapter’s name (in PowerShell opened as administrator):

Get-NetAdapter

Then set the DNS (in this example the adapter name is “Wi-Fi”):

Set-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -ServerAddresses ("1.1.1.1","1.0.0.1")

To go back to automatic settings:

Set-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -ResetServerAddresses

In Command Prompt the same can be done with netsh interface ip set dns name="Wi-Fi" static 1.1.1.1.

Verifying the Change and Flushing the Cache

  1. Flush the DNS cache in Command Prompt with ipconfig /flushdns.
  2. Check the adapter’s DNS servers with ipconfig /all.
  3. With nslookup example.com, confirm that the responding server is the new DNS.

For more on lookup tools, see our guide how to do a DNS lookup.

If the Internet Stops Working After Changing DNS

  • You may have typed the addresses incorrectly; check the dots and digits.
  • Turn off encrypted DNS and try again.
  • A VPN or security software may be forcing its own DNS setting.
  • If the problem isn’t solved, set it back to Automatic (DHCP).

Frequently Asked Questions

Does changing DNS increase internet speed?

It doesn’t increase your download speed. It can only shorten the time it takes to resolve site addresses, which may make pages start loading slightly faster.

Do I need to set DNS separately for each network?

The Wi-Fi DNS setting in the Settings app is applied per network or per adapter. If you connect to different Wi-Fi networks, you may need to check it. To apply it to the whole home, you can change the DNS on your router.

Is changing DNS safe?

It’s safe as long as you use well-known, trusted providers. DNS addresses of unknown origin can redirect you to fake sites.

Categories

Latest guides