This article was written by Stan Kats and by wikiHow staff writer, Hannah Dillon. Stan Kats is a Professional Technologist and the COO and Chief Technologist for The STG IT Consulting Group in West Hollywood, California. Stan provides comprehensive technology solutions to businesses through managed IT services, and for individuals through his consumer service business, Stan's Tech Garage. Stan holds a BA in International Relations from The University of Southern California. He began his career working in the Fortune 500 IT world. Stan founded his companies to offer an enterprise-level of expertise for small businesses and individuals.
This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources.
If you're dealing with sluggish internet or you're looking for a little more security while browsing the web on your Windows 11 computer, you might want to try changing your DNS server. Changing the DNS server is simple and easy to revert if you want to go back to the automatic DNS set by your ISP. In this article, we go over three ways to change your DNS server, as well as provide more info about DNS and some public DNS servers you can try. Keep reading to learn more!
Ways to Change DNS on Windows 11
- Open your network settings in the Settings app and choose to manually input a DNS.
- Access your connection in the Control Panel and manually set the DNS there.
- Use PowerShell to quickly change your DNS server with a few simple commands.
Steps
Using the Settings App
-
Open the Settings app. You can do this in a number of ways:
- Click on the Windows icon in your taskbar, then click on the Settings option. By default, it's under the "pinned" header.
- Type "settings" into the taskbar search bar and click on Settings in the Start menu that pops up.
- Press ⊞ Win+I.
- Right-click the Windows icon in the taskbar and click Settings.
-
2Click Network and Internet. It has an icon of a computer screen and a globe.Advertisement
-
3Click on your connection type. If you use wireless internet, click Wi-Fi. If you have wired internet, click Ethernet.
-
4Click Edit next to "DNS server assignment." By default, this will be set to "Automatic (DHCP)."
-
5Choose Manual in the dropdown. You'll see two options appear.
-
6Toggle on IPv4. This will cause more options to appear.
-
7Enter your preferred and alternative DNS. You can also choose to do DNS over HTTPS. If you're not sure what to do here, leave these options set to "Off."
-
8Click Save. You can now exit Settings, as your DNS settings are saved. If you'd like to go back to automatic DNS, you can go back into your Settings and change the dropdown back to "Automatic (DHCP)."[1]
Using Control Panel
-
1Open Control Panel. The easiest way to do this is to type "control panel" into the taskbar search bar, then click Control Panel in the Start menu.
-
2Click View network status and tasks. It's the small link under the "Network and Internet" header.
-
3Click on the name of your connection next to the "Connections" label. This will be near the top of the window.
-
4Click Properties. It's near the bottom of the pop-up window. The button also has an icon of a blue and yellow shield, as you need to have administrator access to edit your connection's properties.
-
5Choose Internet Protocol Version 4 (TCP/IPv4). It's near the top of the list in the box in the middle of the pop-up window.
-
6Click Properties. It's under the box in the middle of the pop-up window.
-
7Click the radio button next to Use the following DNS server addresses. By default, your computer will find a DNS server address for you.
-
8Enter a preferred and alternate DNS server. If, for some reason, the preferred DNS server isn't available, your computer will try the alternate DNS server.
-
9Click OK to save your DNS settings. You can now exit the Control Panel. To change your DNS back to automatic, go back into your connection settings and choose Obtain DNS server address automatically.[2]
Using Windows PowerShell
-
Open Windows PowerShell. There are two ways to do this:
- Type "powershell" in the taskbar search bar to look for it, then click on it in the Start menu to open it.
- You can also right-click on the Windows icon in your taskbar and click Terminal to open a Terminal window running Windows PowerShell.
-
2Type the command Get-NetIPConfiguration. Press ↵ Enter to run the command.
-
3Note your InterfaceIndex. Make sure you're looking at the connection that you're trying to change, as you may have more than one if you have Ethernet, Wi-Fi, Bluetooth, etc.
-
4Enter the command to change your DNS. This command is as follows: Set-DnsClientServerAddress -InterfaceIndex [interface_index] -ServerAddresses [dns_1], [dns_2], where [interface_index] is the InterfaceIndex you noted in the last step, [dns_1] is your preferred DNS, and [dns_2] is your alternate DNS.
- Press ↵ Enter to run the command.
-
5Run Get-NetIPConfiguration to make sure your DNS has changed. You should see the new DNS server addresses after the "DNSServer" label.[3]
Expert Q&A
Video
Tips
References
- ↑ https://developers.cloudflare.com/1.1.1.1/setup/windows
- ↑ https://www.windowscentral.com/software-apps/windows-11/how-to-set-different-dns-settings-on-devices-running-windows-11
- ↑ https://www.pdq.com/blog/change-dns-server-settings-in-windows/#how-do-i-change-dns-server-settings-in-windows-11-using-the-settings-app
- ↑ https://www.pcmag.com/how-to/how-and-why-to-change-your-dns-server
- ↑ https://www.cloudflare.com/learning/dns/what-is-dns




