Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Import DNS Records From Text File

3,764 views
Skip to first unread message

Fred Flowers

unread,
Sep 30, 2004, 1:29:09 PM9/30/04
to
I am a new user of Windows 2003 Server DNS, which is
integrated with Active Directory, as appears to be the
recommended practice. Since I will be running periodic
network tests requiring the entry and subsequent deletion
of many DNS records, I would like to prepare a simple text
file of these entries and import them into the DNS as
needed. Can someone point me toward a command, utility,
or script file that will accomplish this simple task?

Fred

Ace Fekay [MVP]

unread,
Sep 30, 2004, 5:26:55 PM9/30/04
to
In news:24fe01c4a712$feaa2570$a601...@phx.gbl,
Fred Flowers <Fred_FlowersDe...@irco.com> made a post then I
commented below

You can try DNSCMD (part of support tools) or try Dean Well's, MVP, "DNS
Dump" found here"
http://www.reskit.net/DNS/dnsdump.cm_

Note: there's an underscore at the end of the link. Save it to notepad,
rename it as a .cmd file. For syntax, help is your friend...

--
Regards,
Ace

Please direct all replies ONLY to the Microsoft public newsgroups
so all can benefit.

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

Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP
Microsoft Windows MVP - Windows Server - Directory Services

Security Is Like An Onion, It Has Layers
HAM AND EGGS: A day's work for a chicken;
A lifetime commitment for a pig.
--
=================================


Roger Abell [MVP]

unread,
Oct 2, 2004, 5:22:04 PM10/2/04
to
Also, if it is not necessary that the record be in the DNS domain
you now have, but could be in any valid DNS domain, then you
could just
1. place the zone file with the records, and appropriate SOA, NS
into system32\dns
2.edit the boot file so that it specifies the new primary zone,
pointing to then file.
3. trigger the DNS server to reload zones
If you wanted the zone AD integrated, then go in and change its
type after it has been loaded.

--
Roger Abell
Microsoft MVP (Windows Server System: Security)
MCDBA, MCSE W2k3+W2k+Nt4
"Fred Flowers" <Fred_FlowersDe...@irco.com> wrote in message
news:24fe01c4a712$feaa2570$a601...@phx.gbl...

Hawas@discussions.microsoft.com Sam Hawas

unread,
Jan 30, 2005, 8:51:02 PM1/30/05
to
Hello,

I am still not clear about how to export and import zones to DNS? is there
any article that may help?

thnaks

Ace Fekay [MVP]

unread,
Jan 31, 2005, 1:19:01 AM1/31/05
to
In news:C14A80E5-F67A-4B06...@microsoft.com,
Sam Hawas <Sam Ha...@discussions.microsoft.com> made a post then I commented
below

> Hello,
>
> I am still not clear about how to export and import zones to DNS? is
> there any article that may help?
>
> thnaks
>
> "Roger Abell [MVP]" wrote:
>
>> Also, if it is not necessary that the record be in the DNS domain
>> you now have, but could be in any valid DNS domain, then you
>> could just
>> 1. place the zone file with the records, and appropriate SOA, NS
>> into system32\dns
>> 2.edit the boot file so that it specifies the new primary zone,
>> pointing to then file.
>> 3. trigger the DNS server to reload zones
>> If you wanted the zone AD integrated, then go in and change its
>> type after it has been loaded.
>>
>> --
>> Roger Abell

Roger gave you step by step instructions. Curious, what part of the
instructions were not clear?

You can also opt to try DNSDump (by Dean Wells, MVP) located at:
JSI Tip 5695. DNSDump script will EXPORT (Backup) and IMPORT (Restore) your
DNS Server configuration.:
http://www.jsiinc.com/subl/tip5600/rh5695.htm

Regards,
Ace

G O E A G L E S !!! Superbowl bound NFC Champs!!

Sam Hawas

unread,
Jan 31, 2005, 8:41:06 PM1/31/05
to
Hi,

This is a very lengthy process, thanks for the reply, I found out the best
way to backup DNS zones, Administrative tools - DNS - then right click on DNS
server name - properties - advanced, then in the drop down box of the label:
Load zone data on startup, change to From File - then click Apply, this will
generate a boot file under windows/system32/dns .... this is the back up of
all zones currently in DNS server, this file to be save as backup file, if
you want to restore them for any reason, just put the Boot file back in
windows/system32/dns and start DNS server service, all zones in that file
would loaded ... is that simple ... not sure why Microsoft does not put this
instruction clearly for users like me so they don't have to waste so much
time searching for answer.

Thank you very much.

Ace Fekay [MVP]

unread,
Feb 1, 2005, 2:43:51 AM2/1/05
to
In news:9F8D6019-C5BD-4E36...@microsoft.com,
Sam Hawas <SamH...@discussions.microsoft.com> made a post then I commented
below

> Hi,
>
> This is a very lengthy process, thanks for the reply, I found out the
> best way to backup DNS zones, Administrative tools - DNS - then right
> click on DNS server name - properties - advanced, then in the drop
> down box of the label: Load zone data on startup, change to From File
> - then click Apply, this will generate a boot file under
> windows/system32/dns .... this is the back up of all zones currently
> in DNS server, this file to be save as backup file, if you want to
> restore them for any reason, just put the Boot file back in
> windows/system32/dns and start DNS server service, all zones in that
> file would loaded ... is that simple ... not sure why Microsoft does
> not put this instruction clearly for users like me so they don't have
> to waste so much time searching for answer.
>
> Thank you very much.

There's actually multiple links on this, but I am happy to hear that you
were able to figure it out with the help of Roger and anyone else that has
responded. If ok with you, I thought to post some of the links pretaining to
DNS boot files for you and everyone out there for future reference. You
know, most of these posts will wind up on about a dozen different sites
anyway. I hope between your post and these links, they will benefit someone
else in need.

Windows NT (Win2k and Win2k3 too) DNS Disaster Recovery - How to build a
boot file and use it for DNS DR:
http://www.microsoft.com/technet/archive/winntas/tips/winntmag/dnsdis.mspx

Windows 2000 DNS Boot File Can Be Named Boot or Boot.dns (basically what you
did):
http://support.microsoft.com/default.aspx?scid=kb;en-us;240088

How to move one or more zone files to a new Windows NT DNS server (boot
files too):
http://support.microsoft.com/default.aspx?scid=kb;en-us;172221

Q280061 - HOW TO Move Windows 2000 DNS Zones to Another Windows 2000-based
Server (mentions how to use boot files):
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q280061

Then there's migration method from a BIND server:
Upgrading - Migrating DNS servers from NT4.0, BIND formats that Windows
understands:
http://www.microsoft.com/windows2000/en/server/help/sag_DNS_imp_MigrationIssues.htm

Then there are 3rd party tools as well:
Simple DNS Plus - Windows DNS Server Moving NT4 to W2k or W2k to W2k:
http://www.jhsoft.com/tutor/migrate.htm

--

0 new messages