Mass change Microsoft DNS & IIS server settings

Solution 1:

I think something like this would help; you can edit the DNS file in your favorite text editor.

Solution 2:

It's pretty easy to update dns records from the powershell command line, (as I was looking up a wmi query I found someone else that already wrote the code I was writing so here's the link)

try this code: PowerShell: Script to make batch DNS changes

From the site:

$CNAMES = import-csv "Path to CSV file"
$Query = "Select * from MicrosoftDNS_CNAMEType"
Foreach($CNAME in $CNAMES)
{
$CNAME
$Record = Get-WmiObject -Namespace "root\microsoftdns" -Query $Query -ComputerName dnsserver | Where-Object{$_.Ownername -match $CNAME.Aliases}
$Record.RecordData = "FQDN of new IIS server"
$Record.put()
}

The script can be modified to update any kind of DNS record, so it's not locked into just updated CNAME's