Hello, I have just set up an ISPConfig multiserver installation on freshly installed Ubuntu 24 machines. In the panel, I set ns02 as a mirror of ns01. When I create a DNS zone (e.g., ilmiodominio.com) from the panel, the zone is replicated to ns02 as well, but on both servers in /etc/bind I find the file pri.ilmiodominio.com. I was expecting to find the zone as a secondary (e.g., sec.ilmiodominio.com) on ns02 instead. Since DNS is a critical service, I suspect I may have missed an important configuration step. Thank you for your help. Riccardo
When you use That's fine and as it should be. When you use ISPConfig mirroring to mirror ns1 and ns2, both are primary zones as the mirroring is done by ISPConfig and not BIND. If you want to use mirroring in BIUND and not in ISPConfig, you must disable mirroring in ISPConfig so you have tow separate non-mirrored DNS servers, then create a primary zone on the first server and a slave zone on the second server in ISPConfig DNS module.
Why would you mirror a DNS server (by ISPC or Bind) and not just use DNS as intended? A server with primary zones and another (or more) server(s) with slave zones. You also won't be gettings DNSSEC problems as posted here fairly frequently. And it's fully supported in ISPC.
Thank you for your replies. I have decided to keep one DNS server as the master in ISPConfig and enable zone transfers to a geographically remote secondary server. Everything works correctly with this setup. Now, I would like to automate the zone configuration on the secondary server and the reload of its services. ChatGPT suggested publishing a script in /usr/local/ispconfig/server/plugins-available/ (and then linking it in /usr/local/ispconfig/server/plugins-enabled/). However, it seems that the condition chosen to trigger the script is not correct: if ($event_name == 'dns_soa_insert' || $event_name == 'dns_soa_update') { ...do something... } I hope I managed to explain myself clearly. Thank you.
I recommend looking at the actual bind plugin in ISPConfig and use that as a template for your plugin to see how to connect a function to events. ChatGPT is unlikely to be a great help there, as it is known to have no real clue about any ISPConfig-related topic. E.g., registering the function zone_update in your plugin to be called when a zone gets added or updated will loo like this: Code: $app->plugins->registerEvent('dns_soa_insert', $this->plugin_name, 'zone_update'); $app->plugins->registerEvent('dns_soa_update', $this->plugin_name, 'zone_update');