# 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:** 20\
**Page:** 1

<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 18, 2023, 3:29pm UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/1 "2023-05-18T15:29:02Z")

</div>

The domains on this server is using a slave-slave setup.

This is the only server with dns issue, the other 2 servers which run master-slave/master-slave dont have this issue. There are 3 servers in total

I notice that after v-sync a few minutes later it will autodelete the dns zones on both slave servers.  
Ive tried to delete remote dns and add back a few times, and after a few minute it autodeletes the dnszones.

I checked the log and found this

2023-05-18 23:23:05 v-list-dns-records ‘admin’ ‘[domain.com](http://domain.com)’ ‘json’ [Error 3]

Im still trying to figure out why it auto deletes but cant seem to fix it.

digging into both slave server error log i found the same error

v-delete-dns-domain ‘dns-cluster’ ‘domain.comi’ ‘yes’ ‘’ ‘’ ‘’ ‘’ ‘’ [Error 3]

 ![server setup](https://forum.hestiacp.com/uploads/default/original/2X/3/38ccd74afbf33c4bfffefae5a009a3aca12046e2.jpeg)

---

<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 19, 2023, 3:05am UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/2 "2023-05-19T03:05:08Z")

</div>

I have removed 1 of the slaves and it has stopped auto deleting however this is not a proper solution…

---

<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 19, 2023, 5:58am UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/3 "2023-05-19T05:58:55Z")

</div>

Will investigate in a few minutes

---

<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 19, 2023, 10:53am UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/4 "2023-05-19T10:53:50Z")

</div>

![ddsdsd](https://forum.hestiacp.com/uploads/default/original/2X/1/12263f318b40422f734bf7b9e978ad6b7893485d.jpeg)  
So after a few hours i checked one of the dns clusters and found this.  
This server is primary and slave and the most odd thing is that it created a dns zone for a domain that is hosted on the same server as belonging to another server. So say example domain [test.com](http://test.com) is hosted on ns1, and slave is ns2. On ns1 in dns-cluster user there is a dns zone [test.com](http://test.com) with label as ns2.

So basically there is a duplicate its hosting the dns entries on the primary server and inside the dns cluster user so 1 server with 2 duplicate dns zones.

---

<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 19, 2023, 10:57am UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/5 "2023-05-19T10:57:07Z")

</div>

Another thing i found that the dns cluster user is not presenting the numbers of zones and records correctly

 ![dns cluster](https://forum.hestiacp.com/uploads/default/original/2X/0/0f3982b2e28b83953c392f0bcaa0cbf77cc65cfc.jpeg)

---

<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 19, 2023, 1:30pm UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/6 "2023-05-19T13:30:28Z")

</div>

How do you sync?

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

or

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

Also to what users do you sync to?

---

<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 19, 2023, 3:29pm UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/7 "2023-05-19T15:29:43Z")

</div>

The old way from vesta days. Added picture to explain my dns cluster setup. Host 3 domains are remote-dns to host 1. Does not seem possible to add to host 2 because once i do that it starts deleting all the records on both slave ns1/ns2

 ![server setup](https://forum.hestiacp.com/uploads/default/original/2X/3/38ccd74afbf33c4bfffefae5a009a3aca12046e2.jpeg)

---

<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 19, 2023, 4:09pm UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/8 "2023-05-19T16:09:26Z")

</div>

Do you for host 3 both dns-user?

Try creating a new user and assign the DNS user role…

---

<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 20, 2023, 4:18am UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/9 "2023-05-20T04:18:45Z")

</div>

I dont understand your reply. Are you suggesting i re-create all dns-cluster users from host 1 and host 2? Or are you suggesting i create a dns-user on host 3 server?

---

<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 20, 2023, 7:16am UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/10 "2023-05-20T07:16:14Z")

</div>

I have switch over to the new API way  
`v-add-remote-dns-host slave.yourhost.com 8083 'accesskey:secretkey' '' 'api' 'dns-user'`  
I deleted the previous dns cluster user and recreated as dns-user with dns role. In 10 minutes after adding remote dns for host 3, **host 1 and 2 (slave)** starts deleting zone records of **host 3.**

Now host 3 dns zones are not hosted anywhere because the slaves keeps auto deleting…

---

<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 20, 2023, 7:42am UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/11 "2023-05-20T07:42:27Z")

</div>

I think the bug happens when you add 2 remote slaves for 1 server.  
I have removed both slaves and now i just add 1 slave and it does not seem to be auto deleting anymore.

---

<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 20, 2023, 7:49am UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/12 "2023-05-20T07:49:05Z")

</div>

There is a bug in the DNS documentation:

Username should be:  
dns-cluster

or assign the “Role”

 ![Screenshot 2023-05-20 at 09.48.18](https://forum.hestiacp.com/uploads/default/original/2X/4/4f8d0823492c443d0eac010022237754dbd4b8e5.png)

That will prevent it from accidentally syncing…

---

<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 20, 2023, 7:59am UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/13 "2023-05-20T07:59:01Z")

</div>

@eris I did both, i added username as dns-user and set role as dns sync user. Do i need to change the username or probably not since i assigned role dns sync user.

But the problem still remains, for host 3 i can only add its dns zone to 1 slave so that means there is no redundancy and only 1 name server which generally isn’t good… do you have any idea how to resolve this?

---

<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 20, 2023, 9:20am UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/14 "2023-05-20T09:20:39Z")

</div>

v-sync-dns-cluster deletes every dns domain on the user account

So make sure to create an unique user for each “server”

---

<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 20, 2023, 10:32am UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/15 "2023-05-20T10:32:00Z")

</div>

So you mean for each server the dns cluster username has to be different?

**For example server 1**  
dns-user111 as username  
**Server 2**  
dns-user222 as username

Is this what you mean?

---

<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 20, 2023, 11:01am UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/16 "2023-05-20T11:01:53Z")

</div>

This seems to have resolved the problem, different username for each dns cluster. I never thought about it because the documentation from vesta and hestia always meantion dns-cluster as the user and never crossed my mind that it could be something else other than that.

Thanks for your help @eris

---

<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 20, 2023, 11:02am UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/17 "2023-05-20T11:02:53Z")

</div>

Will update the documentation today 🙂

---

<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 20, 2023, 11:13am UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/18 "2023-05-20T11:13:13Z")

</div>

Yes a unique username is fine… Also update the role off course…

---

<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 28, 2023, 2:19pm UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/19 "2023-05-28T14:19:36Z")

</div>

My question is a bit off.

- Why should we use DNS Cluster?
- In what situation should we use it?
- And how useful is it?

---

<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 28, 2023, 2:50pm UTC](https://forum.hestiacp.com/t/dns-cluster-slave-deletes-dns-after-few-minutes/9645/20 "2023-05-28T14:50:24Z")

</div>

- If you want to manage your own DNS and not depend on Cloudflare it is always smart to use 2 servers for security (Some tld require it)
- If you manage your DNS
- If you manage your own DNS it is always smart to have 2 servers available for security

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