Article ID: 118457, created on Nov 5, 2013, last review on Jun 8, 2016

  • Applies to:
  • Plesk 12.0 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 10.4 for Linux/Unix


Plesk began to duplicate some DNS records for newly created domains. For example this zone contains duplicate 'NS' records.

Home -> Subscriptions -> '' -> Websites & Domains -> DNS Settings:      NS      ns1.domain.tld.      NS      ns1.domain.tld.      NS      ns2.domain.tld.      NS      ns3.domain.tld.      NS      ns4.domain.tld.      NS      ns4.domain.tld.      NS      ns3.domain.tld.      NS      ns2.domain.tld.
        *    A
        *    A A A      A      A  CNAME      MX (10)      MX (10)
17 DNS records total


Root cause is in race condition during subscription creation and event handler execution. Such behavior was considered as a bug #PPPM-1012.

Event handler on domain creation could contain command similar to next one:

# /usr/local/psa/bin/subscription_settings -u <new_domain_name> -mbox_quota -1 -max_site 1 -expiration -1 -www true -no_usr reject -wuscripts false -manage_crontab true -manage_domain_aliases true -select_db_server true


1) To fix duplication of the DNS records, please remove event handler, or add some timeout to executed command, e.g.:

    # sleep 3 && /usr/local/psa/bin/subscription_settings -u <new_domain_name> -mbox_quota -1 -max_site 1 -expiration -1 -www true -no_usr reject -wuscripts false -manage_crontab true -manage_domain_aliases true -select_db_server true

Already existent duplicates should be removed manually by restoring the DNS zone to the default state according to DNS template via Plesk Panel GUI.

2) There is also a possibility to add a new Event handler for event 'Default domain (the first domain added to a subscription/webspace) created the following script:

/usr/local/psa/bin/dns --reset ${NEW_DOMAIN_NAME} -ip ${NEW_IP_ADDRESS}

Search Words

Error: Unable to restore the DNS zone: an error occurred while adding the IN A record: DNS record already exists.

New domains

NS records

DNS duplicate entry unable to remove

duplicate dns records

custom event handlers

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c aea4cd7bfd353ad7a1341a257ad4724a 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 e8756e9388aeca36710ac39e739b2b37 dd0611b6086474193d9bf78e2b293040 01bc4c8cf5b7f01f815a7ada004154a2

Email subscription for changes to this article
Save as PDF