Import DNS entries


We currently have Linux as our DNS servers and are transitioning to having our Domain Controllers be the DNS servers.  My linux sysadmin said he could export the entries; however I do not know how to import all of the into my windows DNS zone.  He is using CentOS and I am using Windows 2003 Ent SP2.  

Is there any special format he needs to put this in for me to import?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Windows stores the DNS information in a .dns file located in %windir%\system32\dns

You can have the linux admin match the format of that file and simply replace your existing file (after backing it up and stopping the service, of course)

Here's an example of the format:
;  Zone records

@                       MX	10
@                       MX	20
www                     A

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Leon FesterSenior Solutions ArchitectCommented:
You can easily import DNS entries by using the DNSCMD command
Get the host names and IP's and then create the following command.
DnsCmd <ServerName> /RecordAdd <Zone> <NodeName> <RRType> <RRData>

But there are a few other options as well.
A Windows machine will automatically try to register itself in DNS when it starts up or when the netlogon service is restarted. So you can simply point the workstation to the new Windows based DNS server and let it register itself.

If you are using the Windows based DHCP service then you can configure DHCP to automatically create the DNS record for the new lease.
Chris DentPowerShell DeveloperCommented:
The zone file formats are compatible. Either:

Set up your Windows Server with a Secondary Zone for your domain. Once you have the zone, change the type to Primary in the properties page.


Copy the zone file across (or copy the content), then create the zone using DnsCmd /ZoneAdd. e.g.

dnscmd /ZoneAdd /Primary /File /Load

Once done, you can change the type to AD Integrated.

Note: PanicX mentioned the location, the zone file should be placed there on the DNS server.


It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.