Article ID: 113118, created on Jan 12, 2012, last review on May 11, 2014

  • Applies to:
  • Plesk for Linux/Unix


During upgrade scripts upgrade_dns_1011.php and upgrade_subdomains_1011.php execution failed with errors:
Restore DNS template references for DNS zone dom1.tld
Unable to restore DNS template references for DNS zone with id=2: Unable to restore the DNS zone: an error occurred while adding the webmail.dom1.tld. IN CNAME dom1.tld. record: Such A DNS record already exists.

Cmd of subdomains upgrade script exec: /usr/local/psa/bin/sw-engine-pleskrun "/usr/local/psa/admin/plib/scripts/upgrade_subdomains_1011.php" 1 6
PHP Warning: Invalid argument supplied for foreach(); File: /usr/local/psa/admin/plib/dns/DNSManager.php, Line: 905

After upgrade named can be misconfigured and fail with errors like:
zone subsep.dome-ale-sube.tld/IN: has no NS records
_default/subsep.dome-ale-sube.tld/IN: bad zone
subsep.dome-ale-sube.tld:11: ignoring out-of-zone data (sube.dome-ale-sube.tld)


During upgrade to Plesk Panel 10.2 and higher new records for IPv6 support had been added in the server-wide DNS Zone template and they are conficting with customized CNAME records for following hosts:


Before and after upgrade:
1. Delete or convert to A type records customized CNAME records for hosts ('ns.<domain>.','mail.<domain>.','ipv4.<domain>.','ipv6.<domain>.','webmail.<domain>.')
Following query have to be empty:
mysql> select * from dns_recs_t where type='CNAME' and host in ('<domain>.','ns.<domain>.','mail.<domain>.','ipv4.<domain>.','ipv6.<domain>.','webmail.<domain>.');

2. After upgrade with errors listed in symptoms only:
- Click the link on the warning shown on the Home>Tools & Settings>DNS zone template page after action from step 1:
Warning: Changes in the DNS zone template were not applied to the subscription DNS zones. Click to apply the changes.
3. Reinstall microupdates with command:
# /usr/local/psa/admin/sbin/autoinstaller --select-release-current --reinstall-patch --install-component base

29d1e90fd304f01e6420fbe60f66f838 a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF