Introduction

Managing add-on domains in cPanel is usually a straightforward process, but sometimes administrators may encounter the error message: “Error from park wrapper: Sorry, you do not control the domain.” This issue commonly occurs due to stale domain entries, incorrect ownership mappings, or DNS configuration conflicts within the server. As a result, the add-on domain cannot be removed through the cPanel interface.

This guide explains the steps required to safely remove the problematic add-on domain by cleaning up related configuration files, rebuilding domain mappings, and restarting essential cPanel services. Following these steps carefully will help restore proper domain management functionality on your server.

Step 1: Remove Domain Entries from Server Configuration Files

Delete all references related to the affected domain from the following files and directories:

/var/cpanel/users/username
/var/named/domain.db
/etc/named.conf
/usr/local/apache/conf/httpd.conf
/etc/localdomains
/etc/userdomains
/etc/trueuserdomains
/etc/trueuserowners
/etc/valiases/domain.com
/etc/vdomainaliases/domain.com
/etc/vfilters/domain.com
/var/cpanel/userdata/username

Important Notes

  • Replace username with the actual cPanel account username.
  • Replace domain.com with the affected domain name.
  • In /var/cpanel/userdata/username, remove any folders or files related to the parked or add-on domain.

After removing the entries, execute the following script to rebuild the domain mappings:

/scripts/updateuserdomains

Step 2: Disable Authoritative Nameserver Validation

In WHM, navigate to:

WHM >> Main >> Server Configuration >> Tweak Settings

Set the following option to Off:

Always use authoritative (registered) nameservers when creating a new DNS zone

Save the changes.

Step 3: Remove the Parked or Add-on Domain

Now try removing the parked/add-on domain again from cPanel or WHM.

Step 4: Re-enable the Nameserver Validation Setting

After successfully removing the domain, go back to:

WHM >> Main >> Server Configuration >> Tweak Settings

Enable the following option again:

Always use authoritative (registered) nameservers when creating a new DNS zone

Save the configuration.

Step 5: Run Maintenance and Restart Services

Execute the following commands on the server to rebuild services and ensure all configurations are updated correctly:

/scripts/checkperlmodules --full --force
/etc/init.d/cpanel restart
/scripts/upcp

Conclusion

The “Error from park wrapper: Sorry, you do not control the domain” error is commonly caused by stale domain ownership records or incomplete DNS cleanup in cPanel. By manually removing outdated entries, rebuilding domain mappings, and restarting cPanel services, the issue can be resolved successfully.

Before making any changes, it is recommended to back up all configuration files to avoid accidental data loss. Once the cleanup process is complete, verify that the domain has been fully removed from DNS, Apache, and cPanel configurations.

Leave a Reply