Change DNS Server Settings In Windows 10

Brock Bingham candid headshot
Brock Bingham|August 23, 2021
dns
dns

DNS (Domain Name System) is one of the core systems that makes the internet possible, but it's often taken for granted. In fact, it's utilized by almost 5 billion people, yet most people don't even realize it. And, that's okay. Most people that own a car probably don't know how an engine works, and they don't care unless they start to have engine problems. The same goes for DNS. Most people don't care to know what DNS is or how it works until they see something like this:

dns1

So, what is DNS? And, how can we change the DNS settings in Windows 10? Let's find out.

What Is DNS

Computers, smart devices, and network devices all use these things called IP addresses to locate and communicate with each other. IP addresses come in a couple of different versions. 

  • The more common version is IPv4, which looks like this: 172.217.14.238. 

  • The newer version, called IPv6, looks more like this: 2001:0db8:0100:f101:0210:a4ff:fee3:9566. Scary, right?

So, what does this have to do with DNS? Good question. DNS is the system designed to translate domain names (e.g., google.com, amazon.com, pdq.com) to their respective IP addresses. For example, DNS would translate google.com to 172.217.14.238.

It was developed because we humans (me especially) aren't great at remembering random sets of numbers. Could you imagine trying to memorize a random number with up to twelve digits for each website you visit? That's not even taking into account IPv6 addresses. However, we are pretty good at remembering names (except for me, who will forget a person's name three seconds after hearing it). It's much easier for us to remember yahoo.com than it is for us to remember 74.6.143.25.

DNS is often compared to a phonebook for the internet. However, since most younger generations probably don't know what a phone book is, let's try something else.

A man named Ross gets into a taxi. The driver, Phoebe, asks Ross where he wants to go. Ross says he wants to go to Central Perk to meet his friends and get some coffee. Being new in town, Phoebe doesn't know where Central Perk is located, so she looks up the address on her phone. Once she has the address, Phoebe knows exactly how to get to Central Perk.

In this example, Phoebe would be the browser, and her phone would be the DNS server. You tell your web browser to take you to pdq.com. Since your browser doesn't know how to get to pdq.com, it asks a DNS server for help. The DNS server returns the IP address for pdq.com to your browser, which takes you to the website.

Hmmm…a taxi comparison may not be relevant either these days. Maybe I should have said Uber or Lyft. Ah, well.

How to change DNS servers In Windows 10

Okay, with that clear as mud example out of the way, let's talk about why we would want to change our DNS settings.

Most devices use whichever DNS server settings are automatically assigned to them by their service provider. For example, if your internet service provider is Comcast, they will automatically direct you to their DNS servers which are 75.75.75.75 and 75.75.76.76. On the one hand, this is great because users don't have to do anything. On the other hand, if the DNS servers aren't reliable, you could experience frequent routing issues.

So, what if you are one of those unfortunate people being directed to unreliable DNS servers? Well, your best bet is to configure your DNS server settings manually, and there are a few different ways you can do this.

1. Set DNS server settings through the control panel

This first method of configuring your DNS settings is also the oldest method we'll be covering. Microsoft seems to have its heart set on getting rid of the Control Panel, but since it's currently still around, we'll use it.

1. In the Windows search box, type in "control panel" and click on the Control Panel app.

dns3

2. Click on View network status and tasks.

3. Click on the name of your connection next to the "Connections:" field.

dns5

4. In the status window, click Properties.

dns6

5. In the properties windows, click Internet Protocol Version 4 (TCP/IPv4), then click Properties.

dns7

6. Select Use the following DNS server addresses:

dns8

7. Enter the IP addresses of the DNS servers you want to use. Here are a few popular server's that you can try.

  • OpenDNS: 208.67.222.222 & 208.67.220.220

  • Cloudflare: 1.1.1.1 & 1.0.0.1

  • Google: 8.8.8.8 & 8.8.4.4

dns9

8. Click OK when you finish entering the IP addresses, then close the properties and status windows.

That's all there is to it. You've successfully changed your DNS server settings. However, continue reading to learn about the newer methods, especially since Control Panel may disappear in the future.

2. Set DNS server settings through the Windows 10 settings Menu

Using the Settings Menu is probably how Microsoft intends for most users to change these settings in the future. While the first few steps of this method will be different, eventually we'll be accessing the adapter settings just like we did with method #1.

1. Left-click on the Windows button.

2. Click on the Gear (settings) icon.

dns10

3. Click Network & Internet.

dns11

4. Click Ethernet, then click Change adapter options.

dns12

5. Double click on your adapter.

dns13

6. From this point on, repeat steps 4-8 of method 1.

As Microsoft moves away from the Control Panel, this method will probably change. Microsoft will most likely include DNS settings directly in the Windows 10 settings menu, eventually.

3. Set DNS server settings with PowerShell

If you're a sysadmin that eats, sleeps, and breathes PowerShell, maybe even having made a playlist with it, then this method is for you. If you're not a sysadmin but like learning new things, give this method a shot. The PowerShell commands we'll be using are pretty simple, so you should be able to follow right along.

1. Right-click on the Windows button and click Windows PowerShell (Admin).

dns14

2. Click Yes if prompted by a User Account Control dialog box.

dns15

3. At the PowerShell prompt, enter the following command and hit enter.

Get-NetIPConfiguration
dns16

4. Make a note of your InterfaceIndex number. In the image above, my InterfaceIndex is 6.

5. Type in the following command and hit enter. Use the number of your InterfaceIndex next to the InterfaceIndex parameter (replace the 6 from this command with your InterfaceIndex number). Enter the IP addresses of the DNS servers you want to use next to the ServerAddresses parameter. Separate the two server addresses with a comma and a space.

Set-DnsClientServerAddress -InterfaceIndex 6 -ServerAddresses 8.8.8.8, 8.8.4.4

6. Now we'll double-check to make sure the changes were made successfully. Re-enter the command from step 3 and hit enter.

dns18

7. As you can see, our DNSServer was changed from 192.168.60.30 to Google's DNS servers, 8.8.8.8 and 8.8.4.4.

That's all there is to it. With those two simple PowerShell commands, we were able to change our DNS server settings.

Wrapping Up

There is no "best" method for changing your DNS settings. Each method covered here will get you the results you're looking for and are perfectly viable. Pick whichever method works best for you. And a healthy and happy DNS will make sure PDQ Deploy and Inventory are running the best they can.


Brock Bingham candid headshot
Brock Bingham

Born in the '80s and raised by his NES, Brock quickly fell in love with everything tech. With over 15 years of IT experience, Brock now enjoys the life of luxury as a renowned tech blogger and receiver of many Dundie Awards. In his free time, Brock enjoys adventuring with his wife, kids, and dogs, while dreaming of retirement.

Related Articles