Hi everyone, in this post I want to show you how to change DNS on Windows 11. DNS is the service that translates a domain name like mamangdigital.com into an IP address. By default, Windows uses whatever DNS your router or ISP hands out, and that default DNS can sometimes be slow, time out often, or fail to open certain sites.
Switching to a public DNS service like Google DNS, Cloudflare, or Quad9 is often a quick fix for those problems. In this guide I walk through three methods on Windows 11: through Settings with DNS over HTTPS, through Control Panel, and through PowerShell. I verify every method with nslookup so you can see for yourself which DNS server is actually answering, and at the end I switch everything back to automatic.
Check Which DNS You Are Using Now
Look at DNS Servers with ipconfig /all

Before changing anything, check which DNS is currently in use. Press Windows + R, type cmd, and press Enter. In the Command Prompt window, run the following command.
ipconfig /allLook for the DNS Servers line under the adapter you are using. On my computer the adapter is Ethernet and the DNS in use is 192.168.1.1, which is the router address. If you are on WiFi, look under Wireless LAN adapter Wi-Fi instead.
Check which server answers with nslookup

Run nslookup followed by any domain name.
nslookup mamangdigital.comYou can see that the Server and Address lines show my router (192.168.1.1), which means every DNS query is still being answered by the router. Note this result so you can compare it after changing the DNS.
Method 1: Change DNS Through Windows 11 Settings
This is the method I recommend most, because Settings is the only place where you can turn on DNS over HTTPS (DoH). DoH encrypts your DNS traffic, so nobody on the network can snoop on the queries you send.
Open Network & internet and choose your connection

Press Windows + I to open Settings, click Network & internet in the left menu, then click the connection you are using. Here I am on Ethernet. If you use WiFi, click Wi-Fi and then choose the name of the connected network (the Properties section).
Click Edit next to DNS server assignment

Scroll down until you find the DNS server assignment line, which still says Automatic (DHCP), then click the Edit button next to it.
Choose Manual and turn on IPv4

In the Edit DNS settings window, change Automatic (DHCP) to Manual. Two toggles appear, IPv4 and IPv6. Turn on IPv4 by sliding its toggle to On.
Enter Google DNS and turn on DNS over HTTPS

Enter 8.8.8.8 as the Preferred DNS and 8.8.4.4 as the Alternate DNS. For the two DNS over HTTPS options below each field, choose On (automatic template). Windows fills in the https://dns.google/dns-query template by itself because it already recognizes the Google addresses. Leave Fallback to plaintext set to Off, then click Save.
Preferred DNS : 8.8.8.8
Alternate DNS : 8.8.4.4
DNS over HTTPS: On (automatic template)Make sure the status says Encrypted

After saving, DNS server assignment changes to Manual and IPv4 DNS servers shows 8.8.8.8 (Encrypted) and 8.8.4.4 (Encrypted). That Encrypted label is what tells you DNS over HTTPS is active.
Note: Take a look at the IPv6 DNS servers line at the bottom. On my computer it still shows the router address with an Unencrypted status, because I only changed IPv4. If your network uses IPv6, turn on the IPv6 toggle in the same window as well and fill it with your DNS provider’s IPv6 addresses, for example 2001:4860:4860::8888 and 2001:4860:4860::8844 for Google.
Clear the cache and check with nslookup

Go back to Command Prompt and run the following commands.
ipconfig /flushdns
nslookup mamangdigital.comYou can see that Server now shows dns.google with Address 8.8.8.8, which means DNS has moved from the router to Google. The ipconfig /flushdns command clears the old DNS cache so the result really comes from the new DNS server.
Check the DNS over HTTPS template

To confirm which DoH template is in use, run the following command.
netsh dns show encryption server=8.8.8.8The DNS-over-HTTPS template line shows https://dns.google/dns-query. If you run the command without server=, Windows lists every DNS provider it already recognizes for DoH.
Method 2: Change DNS Through Control Panel
This older method still works on Windows 11 and suits anyone who is used to the Windows 7 or Windows 10 look. Here I switch the DNS to Cloudflare.
Open ncpa.cpl from Run

Press Windows + R, type ncpa.cpl, and click OK. This command opens the Network Connections window directly, so you do not have to click through Control Panel step by step.
Open the adapter Properties

Right click the adapter you are using (Ethernet or Wi-Fi), then choose Properties.
Select Internet Protocol Version 4

Click Internet Protocol Version 4 (TCP/IPv4) so it is highlighted, then click the Properties button.
Look at the current DNS settings

At the bottom you can see Use the following DNS server addresses is already filled with 8.8.8.8 and 8.8.4.4 from the first method. That means Settings and Control Panel store the setting in the same place. If you have never changed your DNS before, the active option is usually Obtain DNS server address automatically.
Enter Cloudflare DNS and click OK

Choose Use the following DNS server addresses, enter 1.1.1.1 as the Preferred DNS server and 1.0.0.1 as the Alternate DNS server, then click OK. After that, click Close in the Ethernet Properties window.
Preferred DNS server : 1.1.1.1
Alternate DNS server : 1.0.0.1Warning: Click the Close button in the Ethernet Properties window instead of closing it with the X. In my test, closing it with the X or Alt+F4 brought up the message If you proceed your changes will be lost. If you answer Yes, the DNS you just entered gets thrown away.
Check the result with nslookup

Open Command Prompt again and run ipconfig /flushdns and nslookup just like before. Server now shows one.one.one.one with Address 1.1.1.1. In my test a single DNS request timed out line showed up before the answer came through, but the site address was still found.
DNS over HTTPS gets turned off too

This is something few guides mention. After changing the DNS through Control Panel, I opened Edit DNS settings in Settings again. It did show 1.1.1.1 and 1.0.0.1, but DNS over HTTPS was back to Off. Control Panel has no encryption option, so if you want encrypted DNS, turn on DoH from Settings as in the first method.
Method 3: Change DNS Through PowerShell
This is the fastest method once you know the commands, and you can use it on many computers at once. I use Quad9 DNS in this example.
Open Terminal (Admin)

Right click the Start button or press Windows + X, then choose Terminal (Admin).
Approve User Account Control

A User Account Control window appears. Click Yes so PowerShell runs as administrator. Without administrator rights, the command to change DNS will be denied.
Check the adapter name and current DNS

Get-DnsClientServerAddress -InterfaceAlias Ethernet -AddressFamily IPv4This command shows the DNS used by the Ethernet adapter, which is 1.1.1.1 and 1.0.0.1 from the second method. If you use WiFi, the adapter is usually named Wi-Fi. Run Get-DnsClientServerAddress without any parameters to see all adapter names.
Change DNS with Set-DnsClientServerAddress

Set-DnsClientServerAddress -InterfaceAlias Ethernet -ServerAddresses 9.9.9.9,149.112.112.112
Get-DnsClientServerAddress -InterfaceAlias Ethernet -AddressFamily IPv4
Clear-DnsClientCache; nslookup mamangdigital.comThe first command changes the DNS right away without printing any message. The second command confirms it now holds 9.9.9.9 and 149.112.112.112, and nslookup shows Server dns9.quad9.net. Clear-DnsClientCache is the PowerShell version of ipconfig /flushdns.
Switching DNS Back to Automatic
Reset DNS to DHCP

If the public DNS turns out not to suit you, or you just want to go back to your router’s default DNS, run the following commands in Terminal (Admin).
Set-DnsClientServerAddress -InterfaceAlias Ethernet -ResetServerAddresses
Get-DnsClientServerAddress -InterfaceAlias Ethernet -AddressFamily IPv4 | Format-List InterfaceAlias,ServerAddressesServerAddresses is back to 192.168.1.1 and nslookup is answered by the router again. In Settings, just click Edit next to DNS server assignment and choose Automatic (DHCP). In Control Panel, choose Obtain DNS server address automatically.
My experience: While trying these three methods back to back, I got confused because the Settings page still showed 8.8.8.8 even though I had already changed the DNS through Control Panel. It turns out the Settings page does not refresh its contents by itself. Only after I clicked the Edit button again did it change to 1.1.1.1. So if you want to be sure which DNS is active, always check with ipconfig /all or nslookup, not from a Settings page that has been open the whole time.
Public DNS Servers You Can Use
Here are the public DNS addresses I used in this guide. All of them are free and support DNS over HTTPS on Windows 11.
Google DNS : 8.8.8.8 and 8.8.4.4
Cloudflare DNS : 1.1.1.1 and 1.0.0.1
Quad9 DNS : 9.9.9.9 and 149.112.112.112How fast each one feels depends on your ISP and location, while Quad9 has the added benefit of blocking domains known to be malicious. Try them one by one and pick whichever is most stable on your own network.
Common Problems and How to Fix Them
The DNS Edit button does not show up in Settings
Make sure you open the page for the connection that is actually connected, not the main Wi-Fi page. For WiFi, click the name of the connected network or click Properties, and the DNS server assignment section will appear.
nslookup still shows the old DNS
The DNS cache is still holding old answers. Run ipconfig /flushdns and try nslookup again. If nothing changes, check that you changed the DNS on the right adapter, for example you changed Ethernet while you are actually using Wi-Fi.
DNS request timed out appears
If it shows up only once and the site address still appears, that is fine. It usually happens on the first query after the cache is cleared. If it keeps showing up and sites will not open, your network may be blocking that DNS server, so try a different DNS provider.
No internet after turning on DNS over HTTPS
With Fallback to plaintext set to Off, Windows refuses to use regular DNS when DoH fails. If the internet drops right after you click Save, turn on Fallback to plaintext or set DNS over HTTPS to Off, then check that the DNS addresses you entered are correct.
PowerShell shows an Access denied message
The Set-DnsClientServerAddress command has to run as administrator. Close the window and open it again through Terminal (Admin).
That is it, you can now change DNS on Windows 11 in three different ways and switch it back to automatic whenever you like. If you are curious how DNS works from the server side, try the hands on lab on setting up web, DNS, and FTP servers in Cisco Packet Tracer. If the internet still feels slow after changing DNS, some people also try to disable IPv6 in Windows 11. If you run into any errors along the way, just leave a comment below.












