Introduction
You may need to associate a DNS zone with a cPanel user if the Zone was created previously with no user attached. You may also need to simply change the user that owns a specific DNS zone.
Procedure
Note: We strongly encourage you to perform adequate backups before proceeding with these steps. Please note that this is an unsupported method of performing such modifications. There is currently no functionality built into the cPanel & WHM product that allows you to perform this, as such, this is simply a workaround that has been found to work in the past.
1) Edit this file, replacing CPUSER with the cPanel user.
/var/cpanel/users/CPUSER |
2) Find the most recent "DNS$number" line such as "DNS1" or "DNS2". Create a new line below this entry that increases the integer by one. So if you had "DNS1" as the first line, you would add the following.
DNS2=domain.tld |
3) Run the following script to update everything.
/usr/local/cpanel/scripts/updateuserdomains --force |