Published by


Brink's Avatar
Administrator

Posts: 18,172

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.

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





DNS Server Address - Change on Windows 10 PC OPTION ONE DNS Server Address - Change 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: 197
Size:  53.3 KB

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

Name:  Change_DNS-2.jpg
Views: 157
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: 158
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: 157
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: 158
Size:  66.5 KB


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

Name:  Change_DNS-6.jpg
Views: 160
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.






DNS Server Address - Change on Windows 10 PC OPTION TWO DNS Server Address - Change 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: 161
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:	9 
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:	8 
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:	6 
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