Link to home
Start Free TrialLog in
Avatar of Serenea Carpenter
Serenea CarpenterFlag for United States of America

asked on

DNS settings Script

I am looking for a script to use with group policy to set the Primary, Secondary, and Advance DNS settings DNS entry for all my servers with Static IP addresses.  I am getting ready to change some IP addresses of my DNS servers and did not want to do it manually on all servers.  Does anyone know of a script that will accomplish this?
ASKER CERTIFIED SOLUTION
Avatar of dkumar82
dkumar82
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Serenea Carpenter

ASKER

That will work if i can make some changes to the DNS one.  I dont want to run this on every server individually.  That would defeat the purpose of having a script.  Can I use wildcards in the IP address?  Like 192.168.*.*?  Also I suppose for the secondary i would just add a second line to this that ends with secondary?  And I do have four entries i want to add so would would i end with for the two others i want to add in the DNS advance page?  Thanks for your help.