DNS master & slave setup with two different servers

3 posts / 0 new
Last post
#1 Fri, 06/03/2011 - 07:25
MrNod

DNS master & slave setup with two different servers

Hi all,

I have two different servers:

ServerA (virtualmin pro) as master DNS server. I have 2 IPs resolving to ns1.domainname.com and ns2.domainname.com on this server. This is currently hosting personal & family sites.

ServerB (new server also with virtualmin pro) and want this to host my clients. However when I create a client virtual server on this box, I want the DNS records updated on ServerA as that is the master DNS server.

I have set-up the servers per http://www.virtualmin.com/documentation/dns/slave-configuration however when I add a new client account to ServerB, the zonefile for clientdomain.com is not created on ServerA, it gets created as a master zone file on ServerB.

So what I'm trying to achieve is: clientdomain.com master DNS record is created on ServerA, but that their actual account resides on ServerB.

Any help or advice would be greatly appreciated. Thank you Mark

Fri, 06/03/2011 - 15:10
MrNod

I have fixed this by the following:

Although ServerA is the master server, it is now set-up as a slave for ServerB so that when a new client account is created on ServerB, the master DNS zone is held on ServerB and then ServerA has a slave zone....

Confused? Yep me too but it appears to work, the websites resolve to ServerB and intodns.com is happy with the records.

Fri, 06/03/2011 - 17:46
Locutus

Your solution is the only feasible one in this case.

Virtualmin cannot create BIND master zones remotely; the only two choices are creating a master zone on the local system (while possibly auto-creating that zone on other nameservers as slaves), or creating a local slave zone without auto-creating it on other nameservers.

Topic locked