Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using the commandline to change dns preferred and alternate order ??? 1

Status
Not open for further replies.

Jetttt

MIS
Nov 3, 2003
32
MX
Exist a way to change the preferred and alternate order of the dns from commandline???
 
Here is the info that I have in a CMD file I use to reset the DHCP and the DNS order.

netsh int ip set address "Local Area Connection" DHCP
netsh int ip set dns "Local Area Connection" static 166.102.165.11
netsh int ip add dns "Local Area Connection" 166.102.165.13
ipconfig /release
ipconfig /renew
ipconfig /all
pause
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top