DirectAdmin

Set up DirectAdmin Multi Server DNS clustering

Connect DirectAdmin servers with Multi Server Setup so DNS zones sync automatically, run dedicated nameserver boxes, and check that zones replicate correctly.

AdvancedDirectAdmin admin2 min read

With one server, DNS for all domains lives on that machine – if it goes down, DNS goes with it. DirectAdmin's Multi Server Setup copies DNS zones to other DirectAdmin servers automatically, so you can run redundant nameservers and share a pair of nameservers across many hosting servers.

Before you start

  • Admin access on all DirectAdmin servers involved.
  • Network access between servers on the DirectAdmin port (2222) and DNS port 53.
  • A plan for nameserver names, for example ns1.example.com on server A and ns2.example.com on server B, with glue records at the registrar.

Create a login key on the remote server

  1. On the server that will receive zones, log in as admin.
  2. Go to Advanced Features → Login Keys and click Create Key.
  3. Allow only the DNS-related commands DirectAdmin documents for Multi Server (such as CMD_API_DNS_ADMIN and CMD_API_LOGIN_TEST).
  4. Restrict Allowed IPs to the sending server's IP and save. Copy the key.

Using a restricted login key instead of the admin password limits risk if one server is compromised. See login keys.

Add the remote server

  1. On the sending server, go to Server Manager → Multi Server Setup (Admin Level).
  2. Click Add Server (or fill in the empty row).
  3. Enter the remote server's IP, Port (2222), user name admin and the login key as password. Tick SSL.
  4. Click Save, then Test Connection.
  5. Tick Domain Check (prevents creating a domain that already exists on another server) and Zone Transfer (sends zones).
  6. Save.

Repeat on the other server in the opposite direction if both host domains and should keep each other in sync.

Sync existing zones

New and changed zones are pushed automatically. To push all existing zones once, use the Transfer all zones option in Multi Server Setup, or run DirectAdmin's task queue command as documented for your version. Check a few domains on the remote server under DNS Administration.

Dedicated DNS servers

Many providers run two small DirectAdmin (or BIND) servers only for DNS. Each hosting server pushes zones to both, and all customer domains use the same nameservers. Set these as the default nameservers in each server's administrator settings.

Verify replication

dig @ns2.example.com example.org SOA +short

The serial number should match the primary server's. Query a recently changed record on both nameservers to confirm updates propagate.

Troubleshooting

  • Test connection fails: firewall blocks port 2222, wrong key, or the key's allowed IP does not match.
  • Zones not appearing: Zone Transfer is unticked, or the task queue is stuck; check /var/log/directadmin/.
  • Domain refused as existing: Domain Check found it on another server – a feature that prevents conflicts.

Next steps

Was this guide helpful?

Still stuck?

Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.