How to Configure DNS address from the command prompt

Domain Name system (DNS ) is using to assign names for a particular IP address. In Internet every communication is based on IP address. It is difficult to remember the 32 bit IP address and DNS server is resolving that issue by assigning a unique name for particular IP address. So if one user type one domain name on the browser the communication is like this.

Web browser-------> DNS Server

DNS server ---------> Web server

The name to IP address conversion is also done in DNS server and it is very important that every computer should know the address of DNS server. So we need to set DNS address on every computer for the proper Internet communication.

How to set DNS(Domain Name System) from DOS prompt using single command



We can set DNS address for a computer from the command promptby a single command. The command to set DNS for a computer is:

netsh interface ip set dns "Local Area Connection" static 192.168.1.50

Where the interface is Local Area Connection

The IP address is 192.168.1.50


Related Topics


1. Check the TCP/IP configuration from command prompt


2. How to assign static IP address command DOS prompt


3. There is an IP address conflict on your computer - fix



New Topics

0 comments: