Hello!
A few days ago I discovered an error and opened a support ticket, since I don't get the right answer, I indicate it here in case someone knows how to fix it.
We continue to advance the module to give IPv6 support to CWP domains. We already have everything working, but recently ("We don't know if it was a CWP update") the changes made in the DNS files of the domains are not synchronized with the DNS cluster servers.
If we make any manual change from the "zone_editor" module, it will be correctly updated to the DNS clusters.
If we make the changes directly on the domain DNS file the changes in the DNS clusters are not synchronized. When I talk about the file, I mean any in this path: /var/named/domain.com.db
Does anybody know how we can get that when we make the changes directly on the file, the update to the DNS clusters is forced?
Our module uses the following function to edit the DNS file:
//***Escribir DNS****////
function escribirdns($dominio, $ipv6){
$cadena_a_agregar = '@ 14400 IN AAAA '.$ipv6;
$filenamedns = ('/var/named/'.$dominio.'.db');
$lineas = file($filenamedns);
$f = fopen($filenamedns, 'a');
fwrite($f, $cadena_a_agregar."\n");
fclose($f);
}
//***Fin Escribir DNS****////
Let's see if someone helps us.
Greetings!