Question Locked

Micrsoft DNS VS. BIND

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,

Here is my situation,

Im installating a webserver running Windows 2003 Server Web edition.

I need a secondary DNS and a SpamAssassin server. Obviously, linux is better to host these services cheaply.

Is it possible to replicate a Microsoft DNS (no AD) into a BIND server?

Any hints and procedure would be greatly appreciated.

Thank you and have a nice day!

3 replies

by fregeus

If your DNS in windows is not bind, no problem.

Create all your domains in your primary DNS as you would normally with all the hosts, cnames, etc. Once that is done, look into the /windows/system32/dns/etc folder (or something like it. I don't have one setup in front of me that i can consult) and you will see all your configuration files in there. Those files are bind dns files. Copy those to the DNS directory in your secondary DNS server and it will recongnize them.

Now, naturally, it would be better to setup your secondary DNS server to go and get the files itself and update on a regular basis. You should be able to do that fairly easily. Unfortunately, i don't remember the commands by heart, but if you search the web on "how to set up secondary DNS server", I'm sure you can find what you need.

by tim

I have set this up and it is working perfectly. You need to set the BIND server up as a secondary, and set up the windows servers to allow zone transfers to it.... it's easy enough.

1. Go to a Windows server and open up the dns management console. Expand the "Forward Lookup Zones" tree and right-click on the domain that you wish to mirror, and click on "Properties".

2. On the "Zone Transfers" tab, tick "Allow zone transfers:" and "Only to servers listed on the Name Servers tab".

3. On the "Name Servers" tab, add your new (BIND) name server to this list.

4. Once this is all done, click "OK".

This is the windows side configured. The next step is to configure bind. The locations of configuration files will differ depending on the flavour of OS/distribution, but the syntax for the BIND configuration will not change (consult the documentation specific to your distribution for the locations of these files). These instructions are for debian/ubuntu.

1. Create a directory to hold your DNS data files and give it the appropriate permissions so that named can write to it. I keep mine in /etc/bind/secondary, but some might suggest you keep them in /var somewhere as they can change regularly for a windows domain.
(to find out which user named runs as; run in a terminal "ps aux | grep -e named" without the quotes)

1. Edit your local bind configuration file (in my case /etc/bind/named.conf.local) and add the following lines:

zone "your.domain." {
type slave;
file "pathtoyourdatafiles/db.your.domain.";
masters {a.b.c.d;w.x.y.z;};
};

Obviously replace your.domain with your windows domain, not forgetting the full stop at the end, pathtoyourdatafiles is pretty self explanitory (mine is /etc/bind/secondary), and a.b.c.d and w.x.y.z should be the ip addresses of your windows primary DNS servers. You must have a minimum of one and each one is followed by a semicolon. If you miss any servers out, the BIND server will refuse notifies from them.

3. Reload named.

4. Check your logfiles for any errors and correct where necessary.

Or you could just do away with the windows DNS servers altogether and replace with BIND as shown in the following article: http://www.sunice.org/modules.php?op=modload&name=News&file=article&sid=16&mode=thread&order=0&thold=0

This discussion is closed to new replies.