+5 votes
238 views
Change DNS Windows 10 CMD

in Windows 10 by (551k points)
reopened | 238 views

1 Answer

+3 votes
Best answer

Change DNS in Windows 10 from CMD

The domain name server (DNS ) is a special network function thanks to which it is possible to connect to the network since it allows the equipment to connect to the server's domains and is also responsible for translating the IP address to the domain name..

 

When we access a website, the browser used will make a query with the DNS server indicating the IP address of our domain and then load the corresponding site, by default on our computers we have a DNS address that is delivered by the Internet provider ( ISP):

 

image

 

 

But if for some reason this DNS fails , connectivity to the network will be impossible or intermittently, so a tip that TechnoWikis gives you is to change the DNS IP address in Windows 10 and although this can be done graphically, the console of the Command prompt is another method available for this purpose, so we will see how to change DNS using this method.

 

 

To stay up to date, remember to subscribe to our YouTube channel!   SUBSCRIBE

 

Change DNS in Windows 10 from CMD

 

Step 1

For this we must access the command prompt as administrators, then we execute the following to enter the network configuration:
 netsh 
Step 2

Then we execute the following. There we can list the current network properties.
 interface ipv4 show config 
image

 

 

Step 3

To configure the primary DNS (the most important) we execute the following syntax:
netsh interface ipv4 set dns name = ”interface” static 8.8.8.8

 

image

 

 

Step 4

As an option we can add the secondary DNS with the following syntax:
 netsh interface ipv4 set dns name = ”interface” static 8.8.8.8 index = 2 
Step 5

After this we exit netsh with "exit" and execute "ipconfig / all" where we check that the DNS address is the one we have established:

 

 

image

 

So it is possible to establish a DNS from CMD in Windows 10..

 


by (3.5m points)

Related questions

+5 votes
1 answer
asked Apr 6, 2021 in Windows 10 by backtothefuture (551k points) | 119 views
+4 votes
1 answer
+4 votes
1 answer
asked Oct 1, 2020 in Windows 10 by backtothefuture (551k points) | 253 views
+3 votes
1 answer
asked Jul 23, 2020 in Windows 10 by backtothefuture (551k points) | 401 views
+5 votes
1 answer
asked Jun 12, 2020 in Windows 10 by backtothefuture (551k points) | 275 views
Sponsored articles cost $40 per post. You can contact us via Feedback
10,632 questions
10,764 answers
510 comments
3 users