Hi all!
DirectSlave 4 is released, and it is open source now.
What I was cooking is ready: DirectSlave 4, featuring an integrated secondary authoritative DNS server with DNSSEC and NSEC3 support, plus an extended dashboard and detailed statistics.
You no longer need BIND on the secondary. One static binary takes the Multi-Server API calls from DirectAdmin, transfers the zones from the primary and answers the DNS queries itself.
Source code, BSD 3-Clause license --
https://github.com/directslave/directslave
Downloads, version 4.0.18:
FreeBSD amd64 --
https://github.com/directslave/directslave/releases/tag/v4.0.18-freebsd
Linux amd64 --
https://github.com/directslave/directslave/releases/tag/v4.0.18-linux
View attachment 9910
View attachment 9911
What is new:
+ integrated authoritative secondary DNS: UDP and TCP, IPv4 and IPv6, AXFR, NOTIFY, SOA refresh/retry/expire timers
+ DNSSEC for signed zones, NSEC and NSEC3. DirectSlave does not sign anything, it serves exactly what your primary signed
+ startup check: after a restart every zone is compared with its primary by serial before it is answered
+ new dashboard: state, serial, records, DNSSEC, last transfer, next refresh, expiry and last error for every zone, with filters and sorting
+ statistics page with a breakdown per primary
+ zone management from the shell: --domain search / add / delete / reload, and --dump-db to look inside the running daemon
+ IDN zones in both Unicode and punycode form
+ optional query log (off / errors / all)
+ IPv6 everywhere: API, dashboard, zone transfers, NOTIFY, IPv6 primaries
+ --password asks for the password instead of taking it on the command line, so it no longer ends up in the shell history
+ Linux: systemd unit, AppArmor profile and SELinux policy included. FreeBSD: rc.d script
Upgrading from 3.x:
Your current directslave.conf works as it is. Without the new options version 4 behaves like 3.5 and keeps driving BIND through rndc, so you can replace the binary and the www folder first and switch later.
To switch to the integrated DNS server, stop BIND on the secondary and add to directslave.conf:
Code:
dns_server integrated
dns_listen_ip4 *
dns_listen_ip6 *
dns_port 53
The zone list file (named_conf) stays the same, so the zones you already have are picked up and transferred.
Limitations:
- secondary only, it never acts as a primary and never signs zones
- zones are transferred with AXFR, no IXFR and no TSIG
- release binaries are amd64 only, for other platforms build from source
The integrated server has been running in my own production for over a month, close to 10,000 zones, and not a single zone was lost. Still, it is a .0 release of a DNS server: try it on one secondary first.
Do not forget to read INSTALL inside the archive. Full documentation --
https://github.com/directslave/directslave/tree/main/docs
Bug reports and questions are welcome here in the thread or in GitHub issues. Pull requests too ;-)