dnavarrojr

Member
Feb 13, 2014
19
1
3
cPanel Access Level
Root Administrator
I am leasing a server from Wiredtree and when I add a new "addon domain" in my cPanel account it creates a whole bunch of sub-domains automatically.

I can't find where the script is that performs these additions. I need a little help.

Thanks!
 

dnavarrojr

Member
Feb 13, 2014
19
1
3
cPanel Access Level
Root Administrator
Under "Tweak Settings" I found "Proxy subdomain creation" with the description:

Automatically create cpanel, webmail, webdisk and whm proxy subdomain DNS entries for new accounts. When this is initially enabled it will add appropriate proxy subdomain DNS entries to all existing accounts. (Use /scripts/proxydomains to reconfigure the DNS entries manually)

However, I can't find where the script is getting the list from. Basically, I'm trying to prevent the automatic creation of the cpanel, webdisk and whm subdomains. But keep the mail, webmail, ftp, etc...
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello :)

You could disable the option in "Tweak Settings" that automatically creates subdomain DNS entries and then setup a hook to add the DNS entry of your choosing using the method described here:

Adding custom dns-entries on sub-domain creation

Note that the entries you referenced are already created by default. The only one you would have to setup through a custom modification is "webmail".

Thank you.