Changing DNS servers in Windows XP through DOS

Changing DNS servers in Windows XP through DOS

Post by Tige » Wed, 25 Apr 2007 03:20:56


Is there a command that I can use to change the DNS servers in a DOS
environment in Windows XP?
 
 
 

Changing DNS servers in Windows XP through DOS

Post by Chuc » Wed, 25 Apr 2007 04:37:14


In a command window, enter
netsh int ip set dns /?

That should get you started.

--
Cheers,
Chuck, MS-MVP [Windows - Networking]
http://www.yqcomputer.com/
Paranoia is not a problem, when it's a normal response from experience.
My email is AT DOT
actual address pchuck mvps org.

 
 
 

Changing DNS servers in Windows XP through DOS

Post by Tige » Wed, 25 Apr 2007 04:52:59


Thanks for the help there. I got it to work to set the primary but I
didn't see in the help function if I could set a secondary or
alternative DNS server. Anyone can help me here?

Tom
 
 
 

Changing DNS servers in Windows XP through DOS

Post by Tige » Wed, 25 Apr 2007 05:43:10


I think I just answered my followup question:

netsh int ip add dns "Local Area Connection" <ip address> index=2

Thanks for the help there chuck.

Tom
 
 
 

Changing DNS servers in Windows XP through DOS

Post by Chuc » Thu, 26 Apr 2007 00:22:14


Glad to help, Tom. Thanks for the update.

--
Cheers,
Chuck, MS-MVP [Windows - Networking]
http://www.yqcomputer.com/
Paranoia is not a problem, when it's a normal response from experience.
My email is AT DOT
actual address pchuck mvps org.
 
 
 

Changing DNS servers in Windows XP through DOS

Post by Tige » Wed, 02 May 2007 01:01:36

Is there another method to set the DNS suffix using netsh?

Tom