Change DNS Server Address on Windows 10 PC

    Change DNS Server Address on Windows 10 PC

    How to Change DNS Server Address on Windows 10 PC
    Published by Category: Network & Sharing
    03 Oct 2017
    Designer Media Ltd

    Published by


    Brink's Avatar
    Administrator

    Posts: 25,290

    Show Printable Version 


    How to Change DNS Server Address on Windows 10 PC

    information   Information
    A DNS (Domain Name System) server is the service that makes it possible for you to open a web browser, type a domain name and load your favorite websites.

    When you subscribe to an Internet connection with an Internet Service Provider (ISP) (ex: Cox, Comcast, AT&T, etc...) in your area, you will use their DNS server by default. If you like, you can use third-party DNS servers (ex: OpenDNS or Google Public DNS) instead, which could offer a variety of features that your ISP may not.

    Sometimes the DNS servers are slow responding to requests, or they just are not reliable. Changing your default settings can improve your internet browsing experience.

    This tutorial will show you how to change the DNS server address on your Windows 10 PC.

    You must be signed in as an administrator to be able to change the DNS server address.
    Note   Note
    If you connect to the Internet via a router, then you may want to change the DNS address in your router settings instead so all computers that connect via the router will use the same DNS address.

    You'll need to read the manual for how to change the DNS settings for your router's model number.
    Name:  Linksys_DNS.jpg
Views: 204
Size:  71.0 KB

    CONTENTS:
    • Option One: To Change DNS Server Address in Control Panel
    • Option Two: To Change DNS Server Address in Command Prompt





    Change DNS Server Address on Windows 10 PC OPTION ONE Change DNS Server Address on Windows 10 PC
    To Change DNS Server Address in Control Panel

    1. Open the Control Panel (icons view), and click/tap on the Network and Sharing Center icon.

    2. Click/tap on the Connections link (ex: "vEthernet (New Virtual Switch)") for your current network connection. (see screenshot below)

    Name:  Change_DNS-1.jpg
Views: 1330
Size:  53.3 KB

    3. Click/tap on the Properties button. (see screenshot below)

    Name:  Change_DNS-2.jpg
Views: 1232
Size:  35.6 KB

    4. In the Networking tab, select (highlight) Internet Protocol Version 4 (TCP/IPv4), and click/tap on the Properties button. (see screenshot below)

    Name:  Change_DNS-3.jpg
Views: 1297
Size:  59.2 KB

    5. Do step 6 (Obtain DNS automatically) or step 7 (Use custom DNS) below for what you want to do.


     6. To Obtain DNS Server Address Automatically from ISP

    NOTE: This is the default setting.

    A) In the General tab, select (dot) Obtain DNS server address automatically, click/tap on OK, and go to step 8 below. (see screenshot below)

    Name:  Change_DNS-4.jpg
Views: 1241
Size:  51.1 KB


     7. To Use Custom or Third-party DNS Server Address

    A) In the General tab, select (dot) Use the following DNS server addresses. (see screenshot below)

    B) Enter the Preferred DNS server and Alternate DNS server addresses you want to use, click/tap on OK, and go to step 8 below.

    Third-party DNS servers Preferred DNS server address Alternate DNS server address
    Google Public DNS 8.8.8.8 8.8.4.4
    OpenDNS 208.67.222.222 208.67.220.220
    Name:  Change_DNS-5.jpg
Views: 1231
Size:  66.5 KB


    8. Click/tap on Close. (see screenshot below)

    Name:  Change_DNS-6.jpg
Views: 1210
Size:  52.9 KB

    9. Click/tap on Close. (see screenshot below step 3)

    10. You can now close the Network and Sharing Center if you like. (see screenshot below step 2)

    11. Flush the DNS resolver cache to make sure the new DNS server is applied.






    Change DNS Server Address on Windows 10 PC OPTION TWO Change DNS Server Address on Windows 10 PC
    To Change DNS Server Address in Command Prompt

    1. Open an elevated command prompt.

    2. Enter the command below into the elevated command prompt, press Enter, and make note of the network connection name (ex: "vEthernet (New Virtual Switch)") you want to change the DNS server address for. (see screenshot below)

    wmic nic get NetConnectionID

    Name:  WMIC_NIC_Get_NetConnectionID_command.jpg
Views: 1236
Size:  51.7 KB


    3. Do step 4 (Obtain DNS automatically) or step 5 (Use custom DNS) below for what you want to do.


     4. To Obtain DNS Server Address Automatically from ISP

    NOTE: This is the default setting.

    A) Enter the command below into the elevated command prompt, press Enter, and go to step 6 below. (see screenshot below)

    netsh interface ip set dnsservers "Connection Name" dhcp

    Note   Note
    Substitute Connection Name in the command above with the connection name (ex: "vEthernet (New Virtual Switch)") from step 2 above.

    Click image for larger version. 

Name:	Set_obtain_DNS_automatically_command.jpg 
Views:	86 
Size:	48.1 KB 
ID:	121436


     5. To Use Custom or Third-party DNS Server Address

    A) Enter the command below into the elevated command prompt, and press Enter. (see screenshot below)

    netsh interface ip set dnsservers "Connection Name" static Prefered DNS address primary

    Note   Note
    Substitute Connection Name in the command above with the connection name (ex: "vEthernet (New Virtual Switch)") from step 2 above.

    Substitute Prefered DNS address in the command above with the actual preferred DNS server address (see table below) you want to use for this network connection.

    Third-party DNS servers Preferred DNS server address
    Google Public DNS 8.8.8.8
    OpenDNS 208.67.222.222

    For example: netsh interface ip set dnsservers "vEthernet (New Virtual Switch)" static 8.8.8.8 primary
    Click image for larger version. 

Name:	Change_Preferred_DNS_command.jpg 
Views:	79 
Size:	53.5 KB 
ID:	121434


    B) Enter the command below into the elevated command prompt, press Enter, and go to step 6 below. (see screenshot below)

    netsh interface ip add dnsservers "Connection Name" Alternate DNS address index=2

    Note   Note
    Substitute Connection Name in the command above with the connection name (ex: "vEthernet (New Virtual Switch)") from step 2 above.

    Substitute Alternate DNS address in the command above with the actual alternate DNS server address (see table below) you want to use for this network connection.

    Third-party DNS servers Alternate DNS server address
    Google Public DNS 8.8.4.4
    OpenDNS 208.67.220.220

    For example: netsh interface ip add dnsservers "vEthernet (New Virtual Switch)" 8.8.4.4 index=2
    Click image for larger version. 

Name:	Change_Alternate_DNS_command.jpg 
Views:	92 
Size:	51.4 KB 
ID:	121435


    6. Flush the DNS resolver cache to make sure the new DNS server is applied.

    7. You can now close the elevated command prompt if you like.



    That's it,
    Shawn


  1.    18 Mar 2017 #1
    Join Date : Oct 2014
    Trnava
    Posts : 2,871
    Windows 10.4 Home 1709 x64

    To change DNS on DHCP enabled network (without the need to enter the name):
    Code:
    wmic nicconfig where DHCPEnabled=TRUE call SetDNSServerSearchOrder ("208.67.222.222","208.67.220.220")

    To change DNS based on MAC address:
    Code:
    wmic nicconfig where macaddress="D0:25:C2:D0:30:DC" call SetDNSServerSearchOrder ("208.67.222.222","208.67.220.220")
      My ComputerSystem Spec

 


Similar Threads
Tutorial Category
IP address lease 192.168.1.2 for Network Card denied by DHCP server
Each time I switch on my W10 PC, I get an Error 1002 "Address configuration status event" show up in event viewer, and its error description is - The IP address lease 192.168.1.2 for the Network Card with network address 0x00..snip has been...
Network and Sharing
Solved How to change MAC Address via reg file ?
Hey guys, How to change MAC Address via reg file ? Regards.
Network and Sharing
Mail Server Address
I am trying to add a new email address to my Outlook email server. I tried to install it automatically but it keeps asking for my mail server. How do I find out what my mail server is. I have Windows 10, Office 365, Outlook 2016. any help...
Browsers and Email
W10 won't see Linux server by name, only by IP Address
For several weeks I have been using W10 with two Linux servers, B767 and B777. Until an hour ago, Windows Explorer saw both of them just fine and everything worked as expected. After a brief hiatus, I came back to the computer and it showed big...
Network and Sharing
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 19:26.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums