Unable to create a domain or subdomain: There is a DNS record pointing to the host

Created:

2016-11-16 12:55:42 UTC

Modified:

2017-08-16 16:38:43 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to create a domain or subdomain: There is a DNS record pointing to the host

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 10.x for Windows
  • Plesk 11.x for Linux
  • Plesk 12.0 for Windows

Symptoms

Unable to create a domain or subdomain:

Error: Failed domain creation: Unable to update domain data: Failed setting of domain parameters: There is a DNS record pointing to the host www.sub.example.com

or

Error: Unable to load object of type BsDomain with id=15: Domain does not exist.

There are DNS template records like:

www.<domain>.   CNAME   <domain>.
<ip> / 24 PTR www.<domain>

Restoration from backup fails with error:

Warning: 
Failed deployment of domain example.com
Warning:
Execution of /usr/local/psa/admin/plib/api-cli/domain.php --create example.com -owner admin -do-not-apply-skeleton -notify false -guid 76b4ce33-20bc-4f53-aec0-df0b6ecc4413 -vendor-guid c50b1217-9dd8-4a93-956e-a84ef1ba3ab5 -creation-date 2016-03-23 -ip 10.10.10.10 -ignore-nonexistent-options failed with return code 1. Stderr is An error occurred during domain creation: Unable to set www prefix: There is a DNS record pointing to the host www.example.com.
Warning: Restore domain "example.com"
Execution of /usr/local/psa/admin/plib/api-cli/dns.php --commit-zone example.com -ignore-nonexistent-options failed with return code 4. Stderr is Requested name is neither domain nor domain alias

Cause

This is an internal issue with ID #PPPM-4036 , which is planned to be fixed in future product updates.

Workaround

Remove www prefix from one of the following records in Tools and Settings > DNS Template :

www.<domain>.   CNAME   <domain>
<ip> / 24 PTR www.<domain>

For example:

www.<domain>.   CNAME   <domain>.
<ip> / 24 PTR <domain>.
Have more questions? Submit a request
Please sign in to leave a comment.