Share via


How to update all DNS records in my Windows Server 2012?

Question

Friday, January 11, 2013 5:17 AM

Hi all,

I'm hosting hundreds of websites on my Windows Server and running DNS for domain resolution. Now I have migrate my server to a new Datacenter and the IP address has been changed. So I want to know if there is a quick way to update all DNS records in my Windows Server 2012 to the new IP address?

I can easily done this in bind via replace all old IP with new IP in zone files, but there are no such files for Windows Server...

Thanks in advanced.

All replies (2)

Sunday, January 13, 2013 5:55 PM ✅Answered

Hi,

DNS client will update its DNS record automatically if “Register the connection’s addresses in DNS” is selected. Also, we can run ipconfig /registerdns to force a refresh of the client name registration in DNS.

However, if the DHS records for your websites were manually created in your DNS Server, you may need to modify them manually again. Or, you can try the following scripts:


Update Microsoft DNS records with PowerShell and DNSCMD

Create record A on DNS Server with CSV List

Hope this helps.

Jeremy Wu
TechNet Community Support


Sunday, January 13, 2013 8:58 PM ✅Answered

I agree with Jeremy - the best way is using DNSCMD or PowerShell. There's another utility called DNSDUMP, that was written by Dean Wells prior to joining Microsoft's AD engineering team. This one works for everything up to 2008 R2 for Primary zones and AD integrated zones, but I haven't tested it out yet with 2012. If it works, it's a lot easier than DNSCMD.

DNSDUMP.CMD - Dean Wells / MSEtechnology - July 2008, DNSdump Version 2.1
PURPOSE - Dumps local server's DNS service configuration and zone content. Once dumped, the content can be imported on any other Windows 2000/2003/2008 based DNS server [includes cross OS dumps]
http://www.briandesmond.com/ad4/dnsdump.txt

Ace Fekay
MVP, MCT, MCITP/EA, MCTS Windows 2008/R2 & Exchange 2007, Exchange 2010 EA, MCSE & MCSA 2003/2000, MCSA Messaging 2003
Microsoft Certified Trainer
Microsoft MVP - Directory Services
Technical Blogs & Videos: http://www.delawarecountycomputerconsulting.com/

This post is provided AS-IS with no warranties or guarantees and confers no rights.