Mass Change Entries in Microsoft DNS

Posted on 2012-08-17
Last Modified: 2012-08-17
Windows 2003 Server Standard Edition

We're changing ISPs, which comes with new IP addresses. Is there a way to export all the entries I have, find & replace the IP address with new and import the entries back in?

Or however you think would be the easiest.

Thank you,

Question by:suma33
    LVL 10

    Accepted Solution

    How many A records need changed due to an isp change? I would expect only a handful ?

    DNS on Windows Server 2003 is stored in both registry and disk files. By transferring the registry and disk files you can skip retyping everything

    Export DNS Info:
    Use REGEDIT and navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DNS Server\Zones
    Right-Click the key ZONES and export to a .reg file.

    Alternatively, use command line: regedit /e c:\dns.reg "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DNS Server"

    Copy *.dns from: %windir%\system32\dns

    Each domain has a .DNS file, but you should skip cache.dns as this contains cached DNS lookups.

    Import DNS
    To import on Server 2003 or Server 2008, first create a test zone such as The DNS server needs one zone created, but you can remove it after the import.

    Copy the .DNS files into %windir%\system32\dns on the new server.

    Next double click on the .REG file you created to load all the zones into the new server's registry.

    Finally, restart the service DNS Server , and open the DNS manager. You should see all your domains listed with all the records loaded.

    Author Comment

    I'm not moving DNS servers. We host our own domains and changing our ISP. So same DNS server, just need to change the IP addresses of the entries to reflect new IP addresses of the new ISP.
    LVL 10

    Assisted Solution

    same idea, backup then edit the .dns file located in %windir%\system32\dns, shutdown dns service, replace the original dns file then restart service.

    Author Closing Comment

    Simple enough. Thanks!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    A common practice in small networks is making file sharing easy which works extremely well when intra-network security is not an issue. In essence, everyone, that is "Everyone", is given access to all of the shared files - often the entire C: drive …
    The Need In an Active Directory enviroment, the PDC emulator provide time synchronization for the domain. This is important since Active Directory uses Kerberos for authentication.  By default, if the time difference between systems is off by more …
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now