Networking Forums

Networking Forums > Computer Networking > Windows Networking > Rolling out of DNS changes

Reply
Thread Tools Display Modes

Rolling out of DNS changes

 
 
None
Guest
Posts: n/a

 
      08-11-2005, 05:46 PM
I have about 300 servers that have static DNS entries and I would like to
change them using some sort of script. Does anyone know how this would be
possible or maybe an easier way of doing it?

Thanks.
 
Reply With Quote
 
 
 
 
Miha Pihler [MVP]
Guest
Posts: n/a

 
      08-11-2005, 07:13 PM
Hi,

You can use netsh command to change the IP settings on the computers.

To change DNS setting from e.g. 10.10.10.10 to 10.10.10.100 you would write
a script that would look something like this...

netsh int ip add dns "Local Area Connection" 10.10.10.100
netsh int ip delete dns "Local Area Connection" 10.10.10.10

This would be simple way. Now you could complicate this script to e.g. first
check if this script has already run on this computer and changed the
settings. Next thing what you could do is check the name of Connections on
the computer. The script above assumes that the name of connection is "Local
Area Connection"

I hope this helps,

--
Mike
Microsoft MVP - Windows Security

"None" <(E-Mail Removed)> wrote in message
news:FD748BE9-7D52-4E99-AB43-(E-Mail Removed)...
>I have about 300 servers that have static DNS entries and I would like to
> change them using some sort of script. Does anyone know how this would be
> possible or maybe an easier way of doing it?
>
> Thanks.



 
Reply With Quote
 
None
Guest
Posts: n/a

 
      08-11-2005, 08:46 PM
We have that part down but the hard part is remotely running it on all the
servers.

"Miha Pihler [MVP]" wrote:

> Hi,
>
> You can use netsh command to change the IP settings on the computers.
>
> To change DNS setting from e.g. 10.10.10.10 to 10.10.10.100 you would write
> a script that would look something like this...
>
> netsh int ip add dns "Local Area Connection" 10.10.10.100
> netsh int ip delete dns "Local Area Connection" 10.10.10.10
>
> This would be simple way. Now you could complicate this script to e.g. first
> check if this script has already run on this computer and changed the
> settings. Next thing what you could do is check the name of Connections on
> the computer. The script above assumes that the name of connection is "Local
> Area Connection"
>
> I hope this helps,
>
> --
> Mike
> Microsoft MVP - Windows Security
>
> "None" <(E-Mail Removed)> wrote in message
> news:FD748BE9-7D52-4E99-AB43-(E-Mail Removed)...
> >I have about 300 servers that have static DNS entries and I would like to
> > change them using some sort of script. Does anyone know how this would be
> > possible or maybe an easier way of doing it?
> >
> > Thanks.

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rolling contracts to end John Broadband 43 09-19-2011 03:28 PM



1 2 3 4 5 6 7 8 9 10 11