How to use DA server as a secondary dns server?

tsimtung

Verified User
Joined
Feb 26, 2022
Messages
67
Hi,
I have around a few hundreds domains using my dns servers for many years. Now it is too old, I plan to use other dns servers/services to replace.
Any suggestion?
And I am running a few DA servers.
Any one has used DA server as primary dns server and secondary server? ns1, ns2...
and how to make it?

Thanks,

Stanley
 
agree with @zEitEr - we are using few servers as standalone with own nameservers that serve 800-1800 domains, and have DA multiserver with 3 servers as frontend+DNS. So you can use multiserver for more stability. Just DNS don't take a lot of resources but it depends on network quality, so better to keep them in DCs with nice network.
 
HI, thanks for all your reply.
Now I have set two DA servers as DNS servers:
ns1.btxpx.com
ns2.btxpx.com
I have set

Multi Server Setup​

in ns1.btxpx.com, and add ns2.btxpx.com in it, the connection test is ok.
Now I have added xx-wp.com to DA server ns1.btxpx.com for testing, and I can see there is a /var/named/xx-wp.com.db in ns2.
And then I tried to change something in /var/named/xx-wp.com.db in ns1, and restart the named, and found that no change is in ns2.

Is my setup ok? why ns2 doesn't updated?

Thanks,

Stanley
 
Last edited:
you must modify DNS zone via Directadmin panel, this will notify another server.
 
Is my setup ok? why ns2 doesn't updated?

DirectAdmin does not use Master/Slave model from Named. It implements its own mechanism to sync zones. For this you need to use web interface or trigger the following command in case you modified zone files directly:

Code:
echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d800

Run as root on the same server where you modified zones in CLI.
 
Back
Top