Startup Script to Chagne DNS Entries
Posted on 2008-11-12
I will give a bried description of my Network setup and then ask my question.
One Primay Domain Controller (2003) and one Additional Domain Controller (2003) at Data Center. Both have Active Directory and DNS on them.
There are around 3000 clients (at different locations - Windows XP) which use the PDC and ADC as primary and secondary DNS in their DNS entries. To decrease the network traffice, we have commissioned 18 different ADCs (named NAP servers) at different Locations with AD and DNS.
These 3000 clients (all windows XP) roughly fall under these 18 NAP servers @ 200 clients per NAP.
Now, My Problem:
I need to update the DNS entries of the corresponding 200 clients under each NAP to have the Primary DNS IP as the NAP IP and then Secondary and Tirtiary DNS IPs as the PDC and ADC at the Data Center. So, the client PC would reach the NAP servers to resolve DNS queries.
Please help me with the starup script that would help me push through Group Policy and get the DNS entries updated. A script which will run at start up that will add the three DNS entries (NAP server - PDC -ADC) whith out much manual intervention.
If any one can give me the exact code for the script and clear instructions on how to implement it, I would be really greatful.