AzurelinkCP

Member
Apr 19, 2018
7
0
1
New Hampshire, USA
cPanel Access Level
Root Administrator
Hi, What would be the method to create AddOn domains on a cPanel server using ssh?
I need to have the server ignore the dns on the network for development work.

Details: I'm on a server running CENTOS 6.10 virtuozzo with WHM/cPanel v80.0.15.

This server is a development server on the Media Temple network. I am trying to create new AddOn domains for cPanel account on which there is a Joomla Multisite running. I used rsync to push copies of the multisite files to the development server, but in so doing, the server config was not copied so I am missing several AddOn domains to this cPanel ccount which don't yet exist on the development server and need to add them.

Long story sort, when I attempt to create the AddOn domain using cPanel's interface I get an error message saying that the domain dns already points to another server in the MT network — which is referring to the live production server.

Thanks in advance for your assistance.
Bruce



Or or would it be easier to replace the existing cPanel account and it's files/datbases with the source account? Links to method please?
 
Last edited by a moderator:

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
Hello @AzurelinkCP


Long story sort, when I attempt to create the AddOn domain using cPanel's interface I get an error message saying that the domain dns already points to another server in the MT network
The issue here is that your provider has removed the capability for you to add domains with remote DNS. This will be true whether you use SSH or you use the interface. If you have root access to the server (meaning you also have access to WHM) you can modify this setting by going to WHM>>Server Configuration>>Tweak Settings -> Allow Remote Domains
Allow creation of parked/addon domains that resolve to other servers (e.g. domain transfers) This can be a major security problem. If you must have it enabled, be sure not to allow users to park common Internet domains.