Solved

BIND to Win2k DNS server automatic zone transfer

Posted on 2007-03-29
6
503 Views
Last Modified: 2011-10-03
Hello, my problem is that I have many BIND servers that manage their own domains and two win2k DNS servers (primary and secondary) that have to be refreshed manually. When I say refreshed is that we have to create the zone manually with all the hosts.

So, my question is if I could automatically transfer the zones of the Bind servers to the primary win2k server and to the secondary. If it's needed I would change to BIND the other two servers.

Thanks.
0
Comment
Question by:businet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 71

Accepted Solution

by:
Chris Dent earned 250 total points
ID: 18819176

There are a few ways to achieve this, and really how you do depends on your skill set and personal preferences.

Scripting is the obvious choice for dealing with this, both systems have the capability to deal with that kind of solution, just the methodologies differ.

If you decide to approach scripting zone creation on the Windows DNS server then you're going to need to install the Windows Support Tools (which are on the CD) as they come with the DNSCMD utility. That allows full configuration of Windows DNS through the command line.

Equally, you can also script a process on Linux / Unix to configure zones for BIND and handle everything there. Not something I'd particularly be able to help with though.

Before going on, why do the Windows DNS Servers need to be setup as Primary and Secondary. Why not both Secondary? If both are Secondary then it would suggest you don't need to worry about the NS and SOA records when configuring the zone on the Windows DNS Servers.

Perhaps one method to put all this together would be:

1. Create Zone on BIND
2. Fire a Script that uses FTP (perhaps) to copy the Zone File onto an area on the Windows Server
3. Configure a Script to run on the Windows Server as a Scheduled Task
4. The Script will check a specific folder (FTP folder) for new zones, then run a series of commands to configure the zone on both Windows DNS Server.

Let me know what you think, I can help you with the Windows side of things and DNS in general (whether in BIND or not). Just not the *nix scripting.

HTH,

Chris
0
 
LVL 28

Expert Comment

by:mikebernhardt
ID: 18819397
In BIND-speak, this is called master and slave, or primary and secondary. Just set up the zone in your windows DNS and tell it to be a secondary zone. Point it at the appropriate BIND server(s).

Add the new DNS server as a NS record in your BIND database, and add the A record if it's not already there. Restart BIND. As long as the BIND servers are configured to let it transfer the zone, it will. Whenever you make a change to DNS, increase the serial number and restart it, it will notify all configured name servers unless it has other options configured that limit this. That's how DNS is supposed to work.

0
 

Author Comment

by:businet
ID: 18822211
Thanks for your response Chris.

I would try a solution based on DNScmd but it just doesn't works. I just get this error for every query:

"    Info query failed.                        Status = 1753 (0x000006d9)
     Command failed: UNKNOWN           1753(000006d9)   "

And I have Service Pack 4 for win2k.
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 71

Expert Comment

by:Chris Dent
ID: 18822251

What command parameters are you running for that?

And I assume that was from the 2000 support tools?

Chris
0
 

Author Comment

by:businet
ID: 18822355
Installing the support tools solutioned the problem. I assumed that I had the newest version.

Thanks for your responses.

0
 
LVL 71

Expert Comment

by:Chris Dent
ID: 18822379

You're welcome :)

Chris
0

Featured Post

Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
NIC teaming VMware vSwitch 9 62
How to send commands to switch via telnet programatically 15 86
Configuring NAT in ASA ver. 9.1 4 51
external website is 16 41
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

738 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