# DNS Cluster slave deletes dns after few minutes

**URL:** <https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645>\
**Category:** Community Support\
**Created:** [May 18, 2023, 3:29pm UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645 "2023-05-18T15:29:02Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![elmo](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/elmo/32/2165_2.png) [@elmo](https://forum.hestiacp.com/u/elmo)\
**Post date:** [May 29, 2023, 7:47am UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/21 "2023-05-29T07:47:36Z")

</div>

Security, availability, multi server setup.

If you intend to have 1 server with just a few domains its probably not worth while. I use DNS cluster mainly because i have multiple servers and do plan to add more in the near future. This setup allows me to maintain only 2 name servers across all the servers so its also easier to manage domains and migrate them between nodes if 1 server is down or something like that.

---

<div class="post-metadata">

**Author:** ![Dev](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/d/e8c25b/32.png) [@Dev](https://forum.hestiacp.com/u/Dev)\
**Post date:** [May 29, 2023, 7:57am UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/22 "2023-05-29T07:57:17Z")

</div>

Forgive my stupid questions, but I prefer to ask them so I can understand the logic.  
That is. if we have DNS Cluster servers configured:  
[ns1.mydnsserver.com](http://ns1.mydnsserver.com) - ip: 127.0.0.1  
[ns2.mydnsserver.com](http://ns2.mydnsserver.com) - ip: 127.0.0.1

and

[ns1.mysparednsserver.com](http://ns1.mysparednsserver.com) - ip: 127.0.0.1  
[ns2.mysparednsserver.com](http://ns2.mysparednsserver.com) - ip: 127.0.0.1

this means that if the visitor fails to connect to:

[ns1.mydnsserver.com](http://ns1.mydnsserver.com) - ip: 127.0.0.1  
[ns2.mydnsserver.com](http://ns2.mydnsserver.com) - ip: 127.0.0.1

It will be redirected to:

[ns1.mysparednsserver.com](http://ns1.mysparednsserver.com) - ip: 127.0.0.1  
[ns2.mysparednsserver.com](http://ns2.mysparednsserver.com) - ip: 127.0.0.1

And it will load the server located at 127.0.0.1 ? (as long as it’s alive and active)

If I understand correctly, this could mean that in the first option

[ns1.mydnsserver.com](http://ns1.mydnsserver.com) - ip: 127.0.0.1  
[ns2.mydnsserver.com](http://ns2.mydnsserver.com) - ip: 127.0.0.1

Domain went down or was attacked for some reason or just expired (as funny as that sounds) and is being transferred to the second domain with NS records? And here comes the question, is it possible to display a message like:

Host - works (that is, my computer from which I try to visit [H.com](http://H.com))  
NS Server 1 - working  
NS Server 2 - working  
[H.com](http://H.com) hosting is not working

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [May 29, 2023, 8:04am UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/23 "2023-05-29T08:04:33Z")

</div>

There is no need to host multiple DNS servers to the same ip…

For example:

There is no reason Mohave them point to the same server ip:

If you have 3 Hestia server servers:

1. Web / Mail / Primary DNS
2. DNS Server 1
3. DNS Server 2

In case DNS server 1 or DNS server 2 fails DNS will remain active

If the web server fails you can simple restore a backup on a new server and update DNS settings to the new server. And down time will be limited.

For example:

VestaCP went down for 5 days after they forgot to pay the domain provider when the server came live it took up to 24 till most users can connect…

If multiple DNS servers where available this time can bereduced to only 10 min…

---

<div class="post-metadata">

**Author:** ![elmo](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/elmo/32/2165_2.png) [@elmo](https://forum.hestiacp.com/u/elmo)\
**Post date:** [May 29, 2023, 8:06am UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/24 "2023-05-29T08:06:14Z")

</div>

My dns cluster setup as multiple machines with different IP addresses. Not sure why your example has same IP. Each dns server primary and secondary will store the same DNS Zones, the advantage of this is if 1 of the server goes down either 1 will still host the dns zones. This can be useful for receiving emails.

If 1 of the servers went offline for an extended period of time, i will pull a backup from the remote backup server and restore it on another server, because the setup uses the same “name servers” i dont have to update the ns at the domain. I should be able to get it up and running within hours if such a scenario happen.

---

<div class="post-metadata">

**Author:** ![Dev](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/d/e8c25b/32.png) [@Dev](https://forum.hestiacp.com/u/Dev)\
**Post date:** [June 4, 2023, 9:43am UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/25 "2023-06-04T09:43:27Z")

</div>

Thanks about information.

---

<div class="post-metadata">

**Author:** ![zenaconsult](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/zenaconsult/32/4319_2.png) [@zenaconsult](https://forum.hestiacp.com/u/zenaconsult)\
**Post date:** [June 12, 2023, 1:50pm UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/26 "2023-06-12T13:50:24Z")

</div>

I have a Master - 3x Slave setup using the API keys, working just fine.  
However, when I try to switch to DNSSEC (using all the correct settings), the 3x slave server delete the entries as soon as they are received successfully from the master server. So the synching goes well, but then the records get deleted (not the domain names, those remain). Switching back to a normal 1x Master → 3x Slaves all is working fine.

Just now I got the tip to create unique DNS Sync users instead - will try and update this post.

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [June 12, 2023, 3:10pm UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/27 "2023-06-12T15:10:44Z")

</div>

For DNSSEC set up make sure it is setup like this:

> **[DNS clusters and DNSSEC | Hestia Control Panel](https://hestiacp.com/docs/server-administration/dns)**
>
> Open-source web server control panel.

To verify it is working:

On the slave:  
/usr/local/hestia/data/user/user/dns.conf

SLAVE=“YES” and MASTER=“server.ip.of.master”

If you check /home/{user}/conf/dns/domain.db you should see some encode mangle…

---

<div class="post-metadata">

**Author:** ![system](https://forum.hestiacp.com/uploads/default/original/1X/d9a5b68bf50ced83e880b56452e592b204761b19.png) [@system](https://forum.hestiacp.com/u/system)\
**Post date:** [July 12, 2023, 3:10pm UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/28 "2023-07-12T15:10:55Z")

</div>

Closed on July 12, 2023, 3:10pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

[Previous page](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645.md?page=1)
