How to Change DNS Server in Windows 10

In this article, we will see how to change the DNS server in Windows 10. It is one of the important network parameters which allows you to browse the Internet and resolve remote computer names. Today, we will learn what DNS is and why you might want to change the DNS configuration.


DNS stands for Domain Name System. Windows comes with an option which stores the specified DNS server address and makes the TCP/IP stack use that IP address. It refers to this user-specified DNS service or gateway-specified service to resolve the domain name of a website to its IP address and load it in your web browser.

In most cases, your Internet Service Provider (ISP) provides their own DNS server which does its work. This DNS server is usually specified in your router or automatically fetched from the ISP. But in some cases, you may have a reason to switch to an external DNS server. It may update its cache faster (this can be a reason for web developers) and can have some features that your default DNS doesn't have. For example, a third-party DNS service can have a built-in ad blocker. In some cases, the ISP's DNS server can make you run into an issue where sites do not load fast enough or do not load at all. Other DNS services can provide extra security.

In the place where I live, we have such an ISP whose DNS server is just awful. This is a good reason to change the DNS server address to some alternative one like Google's public DNS. Google's IPv4 DNS servers have the address and Another popular one is OpenDNS ( and Here is how you can specify Windows to use these.

Ensure that you are signed in as an administrator before proceeding, otherwise you won't be able to change your DNS settings.

To change the DNS Server in Windows 10, do the following.

  1. Open Settings.
  2. Go to Network & Internet.
  3. If you are connected to the Internet with a wired connection, click Ethernet on the left side.
  4. If you are connected to the Internet with a wireless connection, click Wi-Fi on the left side.
  5. In the Related settings section, click on the link "Change adapter options".Adapter Properties Link In Settings
  6. The following window will appear on the screen.Network Connections Folder Windows 10 Double-click your network connection.
  7. In the dialog window, click the Properties button with the yellow-blue security shield. Confirm the UAC prompt if you are shown one.Network Connection Status WindowNetwork Connection Status Window Properties Button
  8. Now, on the Networking tab, select the row Internet Protocol Version 4 (TCP/IPv4), and then click on the button "Properties".Network Connection Properties TCP Line
  9. The dialog window "Internet Protocol Version 4 (TCP/IPv4) Properties" will be opened.TCP IP Properties Window To use a custom DNS Server address, select the option "Use the following DNS server addresses:" on the General tab. Enter the desired DNS server address or modify the existing values if required. You can use the servers mentioned above. For example, I will use Google's public DNS servers (see the screenshot below).Change DNS Server In Windows 10
  10. Click OK and Close buttons in every opened window to apply the change.

Alternatively, you can change the DNS server address using the console tool "netsh". First of all, you need to know the name of your connection. You can see it in the Settings app as described above, or you can retrieve it directly in the command prompt.

Open an elevated command prompt and type

ipconfig /all

See the name of your connection (see the example below).Ipconfig All

Now, type the following commands to set an alternative address for DNS servers (I am using Google's DNS servers again for this example):

netsh interface ip set dnsservers "Your Connection Name" static primary
netsh interface ip add dnsservers "Your Connection Name" index=2

Use the required IP addresses and the correct connection name to change the configuration.Ethernet

With netsh, you can also enable automatic DNS server configuration provided by DHCP. The command looks as follows:

netsh interface ip set dnsservers "Your Connection Name" dhcp

Ethernet 2

If you have an IPv6 internet connection, follow the same instructions as above, only change it for Internet Protocol Version 6 (TCP/IPv6). Google's IPv6 DNS addresses are: 2001:4860:4860::8888 and 2001:4860:4860::8844.

That's it.

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!


Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

5 thoughts on “How to Change DNS Server in Windows 10”

  1. Changing DNS without knowing the name:

    DHCP Enabled Network
    wmic nicconfig where DHCPEnabled=TRUE call SetDNSServerSearchOrder (“″,”″)

    Based on MAC address
    wmic nicconfig where macaddress=”D0:17:C2:D0:30:DC” call SetDNSServerSearchOrder (“″,””)

Leave a Reply

Your email address will not be published.

Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.