Hestia DNS Cluster

Hello, can someone write me how to make DNS cluster with HestiaCP?

I don’t want to experiment, so copy/paste commands would be nice.

Thanks!

Hi @Amadex,
You can use the following command:

v-add-remote-dns-host subdns.example.com 8083 admin password

See also

http://docs.hestiacp.com/admin_docs/server_management.html#how-to-setup-a-dns-cluster

1 Like

@eris thanks

But I’ve saw this https://tweenpath.net/vesta-set-master-slave-dns-cluster/
and the part there makes my head to think, is this needed?

Now Enable Zone Transfer

enable AXFR (Zone Transfer) in Bind

Replace following string in the named configuration file:allow-transfer {“none”;};
withallow-transfer { XXX.YYY.ZZZ.111; XXX.YYY.ZZZ.222; };
also-notify { XXX.YYY.ZZZ.111; XXX.YYY.ZZZ.222; };

If you use method with v-add-remote-dns-host no this is done by default if you update your dns records.

How ever if you want to sync with a non Hestia / Vestia server your option is required.

1 Like

This is how goes the order right?

  1. To have Server1 and Server2
  2. Create GLUE records on domain example.net with two IPs (one from Server1, another from Server2)
  3. Install HestiaCP on both servers
  4. Add main domain name example.net to Server1 and change template to: child-ns
  5. Use command on Server1 v-add-remote-dns-host with details of Server2 (+ the dns-cluster user)

Also the NS & A ns2. record in Server1 should be updated to Server2 IP too?

Correct?

  1. To have Server1 and Server2
  2. Install HestiaCP on both servers
  3. Use command on Server1 v-add-remote-dns-host with details of Server2 (+ the dns-cluster user)
  4. Add main domain name example.net to Server1 and change template to: child-ns

This should work

1 Like

For those who only have one VPS, there are free services such as FreeDNS which offers “One IPv4 Secondary DNS Server” or Hurricane Electric which offers up to “Four IPv4/IPv6 Secondary DNS Servers”.

I have them 13, with all differents locations :joy:

@eris one more question (I know that I’m boring but it will help others later): Why is the default PHP CLI 5.6 with fresh install (multi-php) when you edit admin user? I’ve changed that to 7.3.

Probably just a bug. php -v would probably say php 7.3.9

You are right, php -v says 7.3

so that thing 5.6 cli in interface is a bug.

Yes, Could you make a bug report?

Url has changed now to https://docs.hestiacp.com/admin_docs/dns.html#how-to-setup-a-dns-cluster DNS Management / DNS server — Hestia Control Panel documentation (hestiacp.com)

(In case you get here from a google search and want to go to the doc directly :slight_smile: )

3 Likes