View Full Version : Trouble with DNS not changing...


BStuart01@gmail.com
09-27-2006, 10:13 PM
If you run into the issue of your netsh script running however not
changing DNS to DHCP try switching the order of commands.

Example...

Typical netsh command to change a PC from static to DHCP or ensure that
a PC is set to DHCP...

netsh interface ip set address "Local Area Connection" dhcp
netsh interface ip set dns "Local Area Connection" dhcp

Now try the following if you have issues of DNS not setting to DHCP.

netsh interface ip set dns "Local Area Connection" dhcp
netsh interface ip set address "Local Area Connection" dhcp