IP & DNS Add using Command Prompt
There is some time requirement to change IP address and DNS using command prompt.
If we want to use static IP Address then we can use
netsh interface ip set address “Local Area Connection” static 192.168.1.11 255.255.0.0 192.168.1.1 1
for DNS Setting
netsh interface ip set dns “Local Area Connection” static 203.94.243.70
for setting alternate dns
netsh interface ip add dns name=”Local Area Connection” 4.2.2.2 index=2
for renew the network
ipconfig/renew
In case of DHCP
netsh interface ip set address “Local Area Connection” dhcp
we can also create a batch file for the same.