change DHCP DNS entry on a client from DOS

  • Thread starter Thread starter Wisam
  • Start date Start date
W

Wisam

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
 
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.

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.
 
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
 
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://support.microsoft.com/?id=257748"


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.microsoft.com/info/cpyright.htm

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.
 
(e-mail address removed) (Michael Johnston [MSFT]) wrote in
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://support.microsoft.com/?id=257748"

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?
 
Back
Top