If the DNS servers offered by your ISP are slow and not reliable or don’t trust their resolvers, you can change the DNS addresses on Windows 10 in at least four different ways using Command Prompt, PowerShell, Settings, and Control Panel. In this guide, you’ll learn how to change the DNS addresses to use a more reliable and secure resolution service on your Windows 10 device.
Best DNS servers for Windows 10 Change DNS servers on Windows 10 using Command Prompt Change DNS servers on Windows 10 using PowerShell Change DNS servers on Windows 10 using Settings Change DNS servers on Windows 10 using Control Panel
Best DNS servers for Windows 10
Although there are many resolver services out there, Cloudflare, Google, and OpenDNS are among the companies that offer fast, reliable, and secure resolvers.
Cloudflare DNS addresses
1.1.1.1 1.0.0.1
Google Public DNS addresses
8.8.8.8 8.8.4.4
OpenDNS by Cisco DNS addresses
208.67.222.222 208.67.220.220
Change DNS servers on Windows 10 using Command Prompt
Although using command lines is not a suitable method for most users, it’s one of the quickest ways to change the DNS address on Windows 10. To change the DNS address with Command Prompt, use these steps: Once you complete the steps, you can confirm the new configuration using the ipconfig /all command and checking the DNS Servers’ addresses.
IPv4 DNS Servers
In the above command, make sure to change Ethernet1 with the name of your adapter and 1.1.1.1 with the DNS server address that you want to use. In the above command, make sure to change Ethernet1 with the name of your adapter and 1.0.0.1 with the preferred alternate DNS server address.
Microsoft is in the process of retiring netsh on Windows 10. It would be best to start using the NetTCPIP networking module available in PowerShell instead.
Change DNS servers on Windows 10 using PowerShell
Windows 10 also includes PowerShell, a command-line platform that allows you to use the NetTCPIP module to manage networking settings, including the ability to change the DNS address settings of your device. To change the DNS address with PowerShell, use these steps: After you complete the steps, you can test the new configuration using this guide. After running the command, note the following information:
InterfaceIndex DNSServer
(Optional) If you need to set a secondary DNS server address, you can use the same command, but adding a comma and appending the second address:
In the above command, make sure to change the InterfaceIndex number with the one corresponding to your adapter, and change ServerAddresses with the DNS IP address.
Change DNS servers on Windows 10 using Settings
You can also specify new DNS addresses using the Settings app, but you need to configure all the TCP/IP settings to static to make it work. If you’re not comfortable assigning a static TCP/IP configuration, you should not use this option. To change the Windows 10 DNS address with Settings, use these steps: Once you complete the steps, the device will continue to receive its TCP/IP address from the DHCP server, but it’ll now use the specified DNS addresses.
Change DNS servers on Windows 10 using Control Panel
Alternatively, you can also use Control Panel to change the DNS settings on Windows 10. To change the DNS address of Windows 10 with Control Panel, use these steps: Once you complete the steps, you can open your web browser and try loading a website to see if the new configuration works.
Whatever method you use, make sure the IP address for the DNS server is correct to allow proper resolution. Otherwise, you won’t be able to connect to the internet. Although we’re focusing this guide on Windows 10, you can use the Command Prompt and Control Panel methods on Windows 8.1 and Windows 7. All content on this site is provided with no warranties, express or implied. Use any information at your own risk. Always backup of your device and files before making any changes. Privacy policy info.