change DHCP DNS entry on a client from DOS

change DHCP DNS entry on a client from DOS

Post by Wisa » Sat, 18 Oct 2003 06:48:05


Hello,
is there a command to force the system to use another
DNS server from DOS, like the route add command to change
the default route but for DNS, I don't want to have
everybody enter a static ip/dns number on there machines
since the problem with the DNS server is a temp one,

so if I could just ask all 120 users to run a command to
do this and when the problem is fixed they will run
ipcondifg /renew.

Thank you 4 ur help
Wisam
system admin
 
 
 

change DHCP DNS entry on a client from DOS

Post by Kenneth Po » Sat, 18 Oct 2003 08:06:54


$2e52fbf0$ XXXX@XXXXX.COM :


If they use DHCP, then just change the DNS server value in DHCP, have
everyone issue ipconfig/renew, and when you fix the server, change the DHCP
option value and have them do it again to pick up the change.

--
Kenneth Porter
http://www.yqcomputer.com/

 
 
 

change DHCP DNS entry on a client from DOS

Post by anonymou » Sat, 18 Oct 2003 09:12:47

Thank you
I did think of doing this, but not all users are using DHCP
, I clould just ask the ones that have a static IP to
change theres to the temp DNS server, But is there a
command to do it from the CMD windows anyway, i'am just
curious.

thanks again



to
in DHCP, have
server, change the DHCP
change.
 
 
 

change DHCP DNS entry on a client from DOS

Post by michjoh » Sun, 19 Oct 2003 00:55:21

If the clients are Windows 2000 or Windows XP, you can use the "netsh" command to accomplish this. At a command prompt type "netsh intergace ip add dns
"Local Area Connection" 10.0.0.3 index=2". You will need to know the name of the adapter you are adding the DNS entry to. Also the index value is optional. If
gives a preference number to that DNS server. Check netsh help for more details or "257748 How to Use the NETSH Command to Change from Static IP
Address to DHCP in http://www.yqcomputer.com/ "


Thank you,
Mike Johnston
Microsoft Network Support
--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.yqcomputer.com/

Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.
 
 
 

change DHCP DNS entry on a client from DOS

Post by Kenneth Po » Sun, 19 Oct 2003 12:15:45


XXXX@XXXXX.COM (Michael Johnston [MSFT]) wrote in



Is there some way to issue that command remotely? I guess one could set up
a login script and force a remote shutdown, but is there something like the
Unix rexec command on Win32?

--
Kenneth Porter
http://www.yqcomputer.com/