Skip to content

How to change DNS Windows 10

Rate this post

How to change DNS Windows 10: Chatting at the bar, a friend suggested that you change the DNS servers in use on your PC with Windows 10 installed and you, being little expert in computer science, to avoid making a bad impression on the matter you did not blink and you answered in a manner smiling saying you agree on what. Unaware of what he really meant, once you got home, you rushed to the Internet, hoping to be able to understand first what these DNS servers are and then also how to change them on your PC and you’re done here, on this my tutorial.

How do you say? Things are exactly this way and would you like to understand if I can really help you by explaining  how to change DNS Windows 10 ? Of course yes, don’t worry. If you take a few minutes of your precious free time, I can in fact show you, by thread and by sign, how to succeed in what at the moment will certainly seem like an arduous undertaking as well as, of course, explain what exactly these servers are. DNS, which are the best and what are they for.

Then? Would you like to finally put the talk aside and get to the heart of the matter? Yes? Great! So let’s not waste any more time and immediately begin to get down to business. Position yourself well as in front of your trusted computer and read with utmost attention all of the following. I am sure that in the end you will be able to say that you are happy and satisfied with what you have learned.

What are DNS

As anticipated at the beginning, to begin with I want to explain what exactly these DNS are, or rather DNS servers. Without turning around too much, they are a kind of “intermediary” between us and the websites we want to visit.

It is in fact thanks to them if we can visit, for example, Google by simply typing “” or “” in the address bar of the browser instead of the IP address of the search engine, which would be a very long string of numbers ( which would then be the real coordinates of the reference site) practically impossible to remember every time as well as very impractical to type to do a search “on the fly” on the net. In short, as you can see yourself, they have their great utility!

Photo showing an ethernet cable on a PC keyboard

DNS servers are not unique, there are many available in the world. Changing them can be useful to reduce the response times of Internet sites, thus speeding up their opening as well as being able to access those portals for which the provider in use has eventually imposed blocks.

What are the best DNS

But which are the most popular DNS servers currently on the market? The answer is soon given! There are those of Google , those of Cloudflare and those of OpenDNS . You can find them all listed below.

Google DNS server 

  • Default DNS server:
  • Alternative DNS server:

Cloudflare DNS server 

  • Default DNS server:
  • Alternative DNS server:

OpnDNS DNS server

  • Default DNS server:
  • Alternative DNS server:

Those of “big G” and Cloudflare are famous above all for their speed and for the fact that, being international, they also allow access to sites that are obscured by Italian providers. Those of Cloudflare promise a greater degree of privacy, not keeping the data of the sites visited by users stored. Even those of OpenDNS are fast enough and allow you to access blocked sites in Italy, but are used primarily for their parental control function through which you can inhibit the display of specific categories of sites (e.g. sites for adults only, betting sites etc.).

However, considering that, as already mentioned a few lines above, there are many DNS servers and that in addition to those of Google and OpenDNS already mentioned there are also others that can prove to be very valid, if you want advice for finding more you can rely on Namebench . It is a free software for Windows 10 (but usable without problems also on the other versions of the Microsoft operating system as well as on the Mac) in charge of identifying the best performing DNS for the connection in use as well as for the location geographic reference.

You ask me how to use it? Nothing could be easier! To begin with, connect to  the Internet site of the program  and click on the link  namebench-xxx-Windows.exe to immediately download the program on your PC.

Download is complete, open the executable file just obtained and click on the Extract button in the window that you see appear on the desktop then put the check mark on the box that you find next to the item  Include censorship checks  to exclude from the test the DNS servers that block access to certain sites and click the Start button  .

Better DNS

Once this is done, the search for the best servers will be started and at the end of the operation a Web page will open with the DNS configuration recommended for your computer in the upper right corner. That’s all.

In addition to using the software I just told you about, to find good DNS servers to use to change those for your PC with Windows 10 installed, you can contact the use of one of the ad hoc programs that I have indicated in my guide dedicated to the topic . In fact, in this article of mine I have provided you with a pile of additional specific tools that, acting in a similar way to Namebench, can help you in identifying the DNS servers that can guarantee the best performing results.

Change the DNS on Windows 10

Now that you finally have the clearest ideas about the nature of DNS servos, I would say that we can finally go to the heart of the matter and try to understand how to change them on the most recent Microsoft operating system: Windows 10.

To do this, you can take two different paths based on what your preferences are. You can choose to act from the Windows settings or from the command prompt. The end result is identical in both cases.

Standard procedure

If you have chosen to change the DNS on Windows 1o acting from the system settings, the first step you need to take to succeed in your intent is to click on the Start  button  (the flag icon located in the lower left corner of the screen), try  the Panel  control  in the menu that pops up and select the first occurrence of the search results.

The classic Windows control panel will open. Select, therefore, the items  Network and Internet  and  Network and Sharing Center , choose the name of the connection in use (eg Ethernet or  Wi-Fi ) and click the Properties button  in the window that appears on the desktop.

Now, find the wording  Internet Protocol version 4 (TCP / IPv4)  in the list under the heading  The connection uses the following elements:, make sure that the relevant box is selected (and if not, you provide), click on button properties that are at the bottom and select the entry  Use the following DNS server addresses .

How to change DNS Windows 10

To conclude, type the address of the DNS servers you intend to use in the fields located next to the  Preferred DNS server:  and  Alternative DNS server:, put the check mark on the box that you find in the word  Validate settings on exit  and click the OK button  to save and apply the changes made. Done!

If you then wish to change the DNS servers set up on Windows 10 again, you can change them at any time and as many times as you want simply by carrying out the procedure I have just reported from you.

If instead you have second thoughts and want to make sure that your PC with Windows 10 installed automatically acquires the DNS servers of the Internet provider of the reference connection or in any case those set in the modem / router, simply tick the  Get address DNS server automatically after selecting  Internet Protocol version 4 (TCP / IPv4) and clicking on the Properties button   after choosing the connection in use in the connection center of the system.

Alternative procedure

If, on the other hand, you prefer to change the DNS on Windows 10 by using  Command Prompt , first access it by clicking on the magnifying glass attached to the taskbar at the bottom left, typing  command prompt in the search box that is shown to you, by right clicking on the relevant result and selecting  Run as administrator from the menu that appears.

How to change DNS Windows 10

Once the Command Prompt window appears on the desktop, type the netsh command and press the Enter key on the keyboard. Then type the command  interface ip set dns “network interface name” static [DNS server] primary  (replacing the network interface name with the name of the reference network interface and [DNS server] the primary DNS server you wish to use)  to set the primary DNS server and press the Enter key on the keyboard.

Then type the command interface ip add dns “network interface name” [DNS server] index = 2 (replacing the network interface name with the name of the reference network interface and [DNS server] the secondary DNS server you wish to use ) to set up the secondary DNS server and press the Enter key on the keyboard again to set up the secondary DNS server as well.

How to change DNS Windows 10

The changes made will be applied instantly. So close the command prompt window and you can therefore start surfing the net from your Windows 10 PC using the DNS servers set up practically right away.