Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Mass Change Entries in Microsoft DNS

Posted on 2012-08-17
4
Medium Priority
?
1,345 Views
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,

Susanne
0
Comment
Question by:suma33
  • 2
  • 2
4 Comments
 
LVL 10

Accepted Solution

by:
djcanter earned 800 total points
ID: 38305746
How many A records need changed due to an isp change? I would expect only a handful ?
but...

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 testdomain.com. 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.
0
 

Author Comment

by:suma33
ID: 38305767
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.
0
 
LVL 10

Assisted Solution

by:djcanter
djcanter earned 800 total points
ID: 38305784
same idea, backup then edit the .dns file located in %windir%\system32\dns, shutdown dns service, replace the original dns file then restart service.
0
 

Author Closing Comment

by:suma33
ID: 38305811
Simple enough. Thanks!
0

Featured Post

Who's Defending Your Organization from Threats?

Protecting against advanced threats requires an IT dream team – a well-oiled machine of people and solutions working together to defend your organization. Download our resource kit today to learn more about the tools you need to build you IT Dream Team!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…

580 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