The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Adding a new domain in cPanel

Discussion in 'General Discussion' started by dnavarrojr, Feb 13, 2014.

  1. dnavarrojr

    dnavarrojr Member

    Joined:
    Feb 13, 2014
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    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!
     
  2. dnavarrojr

    dnavarrojr Member

    Joined:
    Feb 13, 2014
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    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...
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,712
    Likes Received:
    658
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  4. dnavarrojr

    dnavarrojr Member

    Joined:
    Feb 13, 2014
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks, I'll give that a shot.
     
Loading...

Share This Page