Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to change about 100 DNS records and IIS configurations on a Windows 2003 web server. The GUI doesn't accommodate it and the MS command line tools seem incomplete (for example: dnscmd cannot edit a record, only create). Is there a third party tool out there I can use?

Basically I just need to change one IP address to another.

share|improve this question
up vote 4 down vote accepted

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

share|improve this answer
I ended up using dnsdump to dump the DNS config then used PSPad to do a multi file find and replace, then imported the changed config with dnsdump. – Antonius Bloch Jan 31 '11 at 1:30
For the IIS config I created a backup configuration in IIS Manager, edited the backupname.MD0 file and then restored the backup. Worked like a charm. – Antonius Bloch Jan 31 '11 at 1:32

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)
$Record = Get-WmiObject -Namespace "root\microsoftdns" -Query $Query -ComputerName dnsserver | Where-Object{$_.Ownername -match $CNAME.Aliases}
$Record.RecordData = "FQDN of new IIS server"

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

share|improve this answer
Thanks, I'm going to have to get into PowerShell. – Antonius Bloch Jan 31 '11 at 1:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.