DirectSlave 4: secondary DNS for DirectAdmin with integrated DNS server, DNSSEC and IPv6 (open source)

Thanks so much @roman_m for DirectSlave 4!

I'm pretty new to DNS server management, but after some struggles, I seem to have finally got DirectSlave mostly working on a small VPS running a minimal install of *AlmaLinux 10*. I have a couple newbie questions. I'll work through them one at a time here if that's OK.

1. For MultiServer config, should I add the DirectSlave ONLY to my DNS primary (which is a standalone DirectAdmin for DNS only)? Or should I ALSO add it to my additional DirectAdmin servers where domains are actually created? (those servers have my DNS primary in their MultiServer config already). I have a couple DirectAdmin servers, plus a DirectAdmin DNS primary server acting as ns1, and then the DirectSlave server acting as ns2.
 
Last edited:
For MultiServer config, should I add the DirectSlave ONLY to my DNS primary (which is a standalone DirectAdmin for DNS only)? Or should I ALSO add it to my additional DirectAdmin servers where domains are actually created?

Hello,

You will need to add the DirectSlave in a MultiServer config on each DA server. DirectAdmin does not push DNS zones further if they are received via API from another DA server (this is the way multiserver works). So you will need to connect each DA server directly to DirectSlave.
 
1. For MultiServer config, should I add the DirectSlave ONLY to my DNS primary (which is a standalone DirectAdmin for DNS only)?
Not if you are using that one as secondary DNS server and the other Directadmin servers as primary, unless I understood you wrongly.

You only need to connect Directslave to servers for which Directslave is 2nd or 3rd DNS.

I don't know if it will work as you state, because the name says it already it is intended for "slave" dns server, not for primary dns server.

Personally I would change it around.
Create the DNS on the DA servers where you create the accounts and use their ip as primary DNS, and setup multiserver setup in them.
Use your Directadmin DNS (OR Directslave) server as 2nd dns server and that's it. You can use multiserver setup there too as receiving part.

Or remove the Directadmin DNS only server and use Directslave as 2nd DNS server.
 
Not if you are using that one as secondary DNS server and the other Directadmin servers as primary, unless I understood you wrongly.

You only need to connect Directslave to servers for which Directslave is 2nd or 3rd DNS.
[...]

The way I intend my (very small!) group of servers to work is that I have two standalone nameservers for my DNS:
  • ns1: a minimal DirectAdmin server (which I'm calling my "primary" DNS server)
  • ns2: a very minimal server running just DirectSlave
Then I have multiple regular DirectAdmin servers, and they ALL use ns1 as their "primary" DNS. Domains are created and stored locally on each regular DirectAdmin server, but the DNS for those domains is running on the ns1 and ns2 servers.

I may have made things more complicated than necessary, but I like my network to have cleanly separated services. And I wanted my entire network to share the same ns1 and ns2 nameservers.

I guess I was thinking that I wanted to be able to spin down one of my regular DirectAdmin servers, migrate the accounts off of it, and spin it up somewhere else, without worrying about establishing new nameservers or making domain registrar changes. And I didn't want my DNS going down if one of my DirectAdmin servers failed or crashed.
 
I guess I was thinking that I wanted to be able to spin down one of my regular DirectAdmin servers, migrate the accounts off of it, and spin it up somewhere else, without worrying about establishing new nameservers or making domain registrar changes.
That indeed has some benefits they way you thought of it.
However, with an ns2 on Directslave, there was no worry that DNS would fail if one of your servers would go down, as long as DS would be running.

Oke now it's more clear what you want to do more specifically, I understand and that is very well possible.
Indeed in that case you then need to make a multiserver setup twice on each of your DA account servers. One to the other DA server (for ns1) and one to Directslave for ns2.
That should work fine.

However you have to remember to disable the account check on the multi-server setup and only use DNS. Otherwise moving accounts to another server, even having the same nameservers could still cause some specific extra work. Account check is not required anyway as that one DA server is intended as primary ns only.

Seems @zEitEr was a bit smarter and understood your intentions at once. :)
 
Back
Top