Auerelio Vasquez
asked on
DNS
Here is what i need done. I need to create a second dns server in our domain. I just want this server to mirror the one we already have is this possible ? 2. once server is created i need to go company and add this server to every one's tcp/ip settings. is there a way in dos to change this ? so i can create a batch file ? and not have to go around companywide and change this setting for DNS ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
if you're not using dhcp, the following script was posted by someone on the programming board, it works great for changing settings. i wish i could remember who, but anyway, i can't take credit for it.
you should be all set, please give points to drizzt.
just save this in a text file and rename it to 'something'.vbs
Const strNewDNS1 = "10.10.10.10"
Const strNewDNS2 = "10.10.10.9"
Set objNICs = GetObject("winmgmts:{imper
For Each objNIC In objNICs
If objNIC.IPEnabled Then
objNIC.SetDNSServerSearchO
End If
Next