outroll / vesta

VESTA Control Panel
http://vestacp.com
GNU General Public License v3.0
2.97k stars 1.03k forks source link

Changes or additions of DNS records with DNS-Cluster propagation overrides domains with similar names. #1802

Open HueyGeek opened 5 years ago

HueyGeek commented 5 years ago

Operating System (OS/VERSION):

Ubuntu 18.04 on main Ubuntu 16.04 on NS

VestaCP Version:

VestaCP 0.9.8 Release: 23

Installed Software (what you got with the installer):

Main with: nginx, apache, named (bind), proftpd, iptables, fail2ban, exim, dovecot, spamassassin, clamav, mysql, postgresql NSs with: named (bind), iptables, fail2ban

Steps to Reproduce:

On a server with DNS-Cluster propagation configured, and having several domains with similar names, such as:

logiqos.co logiqos.com logiqos.com.ve

The change or addition of a record in one of the domains whose name is contained in the name of someone else causes the discarding of the configuration line in "named.conf" (at the NSs) of the other domains.

For example, when changing a record in logiqos.co, it causes the "named.conf" in the NS, left alone with logiqos.co configuration line, erasing lines of logiqos.com and logiqos.com.ve

anton-reutov commented 5 years ago

Can't reproduce. Write more about the steps 1... 2... 3... etc..

HueyGeek commented 4 years ago

Sorry for not answering before, only now that I am fixing another similar case on a fork of vesta (hestia), I find similar problems again.

The case is, and as I explained before I have three domains:

logiqos.co logiqos.com logiqos.com.ve

For certain operations and situations in which it is requested to perform searches via SED, when you search for example by the first domain the result of this can (and results) in any of the others, in fact, and in specific of this situation it was necessary to modify any DNS record in logiqos.co, resulted in deleting the .db files of the three domains and only updating the logiqos.co

To reproduce the error you would have to place domain names whose character string is within the beginning of others.

In this case logiqos.co was inside logiqos.com and logiqos.com.ve, and also logiqos.com is inside logiqos.com.ve