Version: i-MSCP >= 1.2.0
Setup with two or more name servers
Problem
When updating i-MSCP to the latest version, the name server settings are not properly set when using slave name server provisioning on a hosted domain name.
Let example.com be hosted on i-MSCP and ns1.example.com and ns2.example.com be the two name servers used (ns2 is a slave to ns1 and provided with updated information by a listener script). All Domains use the same ns entries (ns1.example.com and ns2.example.com) as glue records.
When updating the DNS entries during i-MSCP setup, an error occurs:
Code
- [ERROR] main::setupDbTasks: Servers::named::bind::_addDmnDb: Could not dump example.com zone: zone example.com/IN: NS 'ns1.example.com' has no address records (A or AAAA)
- zone ylabs.de/IN: NS 'ns2.example.com has no address records (A or AAAA)
- zone ylabs.de/IN: not loaded due to errors. at /usr/local/src/imscp-1.3.7/engine/PerlLib/iMSCP/DbTasksProcessor.pm line 446.
- autoinstaller::Functions::install: An error occurred while performing installation steps
Workaround
Backup zone file before update and insert it between creation of the zone file (while updating the domain) and inserting the NS entries from database.
Fix
To investigate