How to disable DNS clustering?

Richard G

Verified User
Joined
Jul 6, 2008
Messages
13,895
Location
Maastricht
I used DNS clustering between two of our hosting servers and set it up like in the help section:
http://help.directadmin.com/item.php?id=97

Now in a couple of weeks, the contract of one of the servers will end, and we will setup a new server with another company in another datacenter.

I know how to move accounts to another server, so that's not a big problem. So we can do the same on the new sever, enable clustering and change the nameserver glue records to the new server.
Question 1: On the server which doesn't change, I do only have do change the ns2 domain ip to keep the cluster working correctly?

But suppose we won't use the new server for clusting anymore....
Question 2: How can I disable clustering on both servers in such way that the "remote" dns zones are also deleted and only local dns zones will be present?
 
Directadmin (admin level) -> Multi Server Setup -> Turn Off

Additionally you might want to delete IP records from that page.
 
Thanks Zeiter.
That alreadyanswered question 2 partly.
Still leaves me with confirmation on question one and the rest of question 2... Any idea?
 
I do only have do change the ns2 domain ip to keep the cluster working correctly?

Yes, you should change IP for ns2 and change it on "Multi Server Setup" page in Directadmin.

Question 2: How can I disable clustering on both servers in such way that the "remote" dns zones are also deleted and only local dns zones will be present?

I'd suppose a custom script is needed here, which would check status of zone, and delete it from named config if it's remote.

Or you might want to

1. backup named.db and zones.
2. remove a list of all zones from named.db file
3. run
Code:
echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue

and named.db should be filled with only local zones.
 
Back
Top