DNS zone synchronization issue - alias domains

SYSTEM INFORMATION
OS type and version DEBIAN 11
Webmin version 2.021
Virtualmin version 7.5
Related packages SUGGESTED

I have a case where, for example, the following domains are aliases, and each of them has its own DNS zone:
example.com
example.eu (alias of .com)

When editing a record in example.com (the primary one), it deletes a record (it is not very clear whether it is random) from example.eu. The records between the zones are not in sync, and there are records that exist in one zone but not in the other.

Is this a bug, and what could be a potential solution?

Hello,

We expect this issue to be fixed in already released Virtualmin 7.7. Please upgrade.

I’ve made a mistake. The server is automatically upgrading and its using Virtualmin version 7.7 since the end of April, the problem persists.

Start-Date: 2023-04-21 10:36:10
Commandline: apt-get -y install webmin-virtual-server
Upgrade: webmin-virtual-server:amd64 (7.5.gpl-1, 7.7.gpl-1)
End-Date: 2023-04-21 10:36:44

Start-Date: 2023-04-21 10:36:45
Commandline: apt-get -y install webmin-virtualmin-htpasswd
Upgrade: webmin-virtualmin-htpasswd:amd64 (3.1, 3.2)
End-Date: 2023-04-21 10:36:45

Start-Date: 2023-04-22 10:36:08
Commandline: apt-get -y install libxml2
Upgrade: libxml2:amd64 (2.9.14+dfsg-0+0~20220524.12+debian11~1.gbpc5dc45, 2.9.14+dfsg-0.1+0~20230421.14+debian11~1.gbpf14485)
End-Date: 2023-04-22 10:36:08

Start-Date: 2023-04-22 10:36:10
Commandline: apt-get -y install webmin-virtual-server
Upgrade: webmin-virtual-server:amd64 (7.7.gpl-1, 7.7.gpl-2)
End-Date: 2023-04-22 10:36:41

Start-Date: 2023-04-24 10:36:09
Commandline: apt-get -y install webmin-virtual-server
Upgrade: webmin-virtual-server:amd64 (7.7.gpl-2, 7.7.gpl-3)
End-Date: 2023-04-24 10:36:40

What is the output of the following command on your system?

grep -Rsi "If enabled in the template, add webmail and admin records" /usr/share/webmin/virtual-server

The output is:

user@server:~# grep -Rsi "If enabled in the template, add webmail and admin records" /usr/share/webmin/virtual-server
/usr/share/webmin/virtual-server/feature-dns.pl:        # If enabled in the template, add webmail and admin records

@m.stoyanov It seems that you have latest version installed.

@Jamie, do you remember fixing this issue recently?

I haven’t made any fixes in this already since Virtualmin 7.7.

On what page or using what command are you editing records?

When an edit is made to the main zone (example .eu) whether adding or deleting a record, there are records in the (example .com) zone that automatically disappear. The editing of the main zone is performed through the virtualmin panel (not webmin).
The user who makes the changes has sudo privileges.

The problem even persists If a change is made from the console, with sudo user using command:
"virtualmin modify-dns --domain “example.eu” --add-record "

Does either the original or the alias domain have DNSSEC enabled? You can see this on the DNS Options page…

Neither the original domain nor the alias domain has DNSSEC enabled.

Hmm … unfortunately I was unable to re-produce this issue.

Are your domains hosted locally, or on a provider like Cloudflare?

Domains are hosted locally.

Hmm … I’m not sure what could be causing this then.

Are any of these domains sub-domains of other domains?

There are no sub-domains.

Hmmm … I am totally mystified as to what could cause this then.

Any chance we could login to your system to take a look at what’s going wrong?

I have just created a test server an recreated the problem. Could you please provide me with your email so I can be able to give you the access ?

Sure, it is jcameron@virtualmin.com

Any update on this?

I sent you the login access on email.
The exact time when I re-created the problem:
2023/06/16 14:28
Webmin > Webmin Actions Log.

@m.stoyanov Can you check if this patch helps to solve your problem?

You will need to manually restart Webmin after editing the file linked in the patch above.