DNS host record maps a hostname to an IP address. Sometimes there is a need to change the IP address of the host and you have to wait for the changes to replicate in the DNS across all the sites in your domain.
There are situations when you don't want to wait long for the changes to replicate and need force replication.
Keeping the above situation in mind we came up with a PowerShell script that changes the IP of the host record across all the domain controllers in your domain and minimizes the replication time.
In the below script you just need to provide the hostname whose DNS record you want to modify the zone name and the new IP address and the script will update the DNS record across the domain.
This Powershell Script determines all the Domain Controllers in your domain and stores them in a variable and then using the foreach PowerShell loop the script updates the IP address of the DNS record in each DCs.
0 comments:
Post a Comment