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.

You can change the default DNS entry of Webmail?

Discussion in 'Bind / DNS / Nameserver Issues' started by Quickfast, Feb 21, 2011.

  1. Quickfast

    Quickfast Registered

    Joined:
    Feb 21, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    You can change the default DNS entry of Webmail?

    When adding a domain, cPanel automatically creates entries for:

    cpanel 14400 IN A xxx.xxx.xxx.xxx
    whm 14400 IN A xxx.xxx.xxx.xxx
    webmail 14400 IN A xxx.xxx.xxx.xxx
    webdisk 14400 IN A xxx.xxx.xxx.xxx

    It happens that we need to change the entry "webmail" type "A " to type "CNAME" to point to a domain. Is it possible?

    What we need is: webmail 14400 IN CNAME mail.01.domain.com.

    Note: This is not possible by editing the "Edit Zone Templates".

    Appreciate any help.
     
    #1 Quickfast, Feb 21, 2011
    Last edited: Feb 21, 2011
  2. Quickfast

    Quickfast Registered

    Joined:
    Feb 21, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Friends,

    any help?
     
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello,

    You would need to remove the webmail proxy subdomain entirely and then hard-code the subdomain in the WHM > Edit Zone Templates file. Simply because the entry doesn't exist in that file doesn't mean you cannot create a hard-coded entry. The issue here is that the existing entries stem from having enabled WHM > Tweak Settings > Proxy subdomain creation:

    To remove the existing proxy subdomains, you would use:

    Code:
    /scripts/proxydomains remove --subdomain=webmail
    Then you would need to hard-code the webmail CNAME into the WHM > Edit Zone Templates files and manually add the entry into any already existing zones.

    In all actuality, you should simply remove the Proxy Subdomains entirely and hard code all 4 of them in the zone template, because any new domains will try to create that webmail entry due to having enabled that option. If you want to remove all 4 of them entirely, you'd run:

    Code:
    /scripts/proxydomains remove
    Then hard-code the 4 proxy subdomains you want with the CNAME for the webmail one, and uncheck the Tweak Setting.
     
  4. Quickfast

    Quickfast Registered

    Joined:
    Feb 21, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Very Good.

    Thanks Tristan.
     
Loading...

Share This Page