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.

cPanel 11.50 DNS zone

Discussion in 'General Discussion' started by Tom Risager, Jun 26, 2015.

  1. Tom Risager

    Tom Risager Well-Known Member

    Joined:
    Jul 10, 2012
    Messages:
    108
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Copenhagen, Denmark, Denmark
    cPanel Access Level:
    Root Administrator
    WHM has an "Edit Zone Templates" function that gives the admin control over how new DNS zones are created. However, theres are some additional records added to each zone that are not found in these templates.

    In particular, it seems that the "webmail.domain.com" record is always created, regardless of the content of the template files. I would like to avoid creating this record, since webmail is disabled. Is it possible to *not* have this record in the zone when new accounts are created?

    My (edited) "standardvirtualftp" template looks like this:

    Code:
    ; cPanel %cpversion%
    ; Zone file for %domain%
    $TTL %ttl%
    @      %nsttl%    IN      SOA     %nameserver%. %rpemail%. (
            %serial%    ; serial, todays date+todays
            86400        ; refresh, seconds
            7200        ; retry, seconds
            3600000        ; expire, seconds
            86400 )        ; minimum, seconds
    
    %domain%. %nsttl% IN NS %nameserver%.
    %domain%. %nsttl% IN NS %nameserver2%.
    %domain%. %nsttl% IN NS %nameserver3%.
    %domain%. %nsttl% IN NS %nameserver4%.
    
    %nameserverentry%. IN A %nameservera%
    %nameserverentry2%. IN A %nameservera2%
    %nameserverentry3%. IN A %nameservera3%
    %nameserverentry4%. IN A %nameservera4%
    
    %domain%. IN A %ip%
    %domain%. IN AAAA %ipv6%
    
    %domain%. IN MX 0 %domain%.
    
    www IN CNAME %domain%.
    
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Home »Server Configuration »Tweak Settings, Domains tab for some options you might find useful.
     
  3. Tom Risager

    Tom Risager Well-Known Member

    Joined:
    Jul 10, 2012
    Messages:
    108
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Copenhagen, Denmark, Denmark
    cPanel Access Level:
    Root Administrator
    Thanks for your quick response, but could you clarify which option on that tab will remove the "webmail.domain.com" record in new zone files?

    I've been through the items on that tab, and I don't see anything there.
     
  4. madmanmachines

    madmanmachines Well-Known Member

    Joined:
    Nov 28, 2014
    Messages:
    94
    Likes Received:
    3
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Look more closely at WHM > Server Configuration > Tweak Settings > Domains > Proxy subdomain(s)
     
  5. Tom Risager

    Tom Risager Well-Known Member

    Joined:
    Jul 10, 2012
    Messages:
    108
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Copenhagen, Denmark, Denmark
    cPanel Access Level:
    Root Administrator
    Thanks, but proxy subdomains are off. So nothing there I can change to not have this record created.
     
  6. Tom Risager

    Tom Risager Well-Known Member

    Joined:
    Jul 10, 2012
    Messages:
    108
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Copenhagen, Denmark, Denmark
    cPanel Access Level:
    Root Administrator
    This is an interface issue. Disabling "proxy subdomains" in Tweak Settings causes the associated settings to become inactive in the interface, but they are still applied. In particular, the default "on" setting of "proxy subdomain creation" is still active.

    The workaround is to enable proxy subdomains, disable proxy subdomain creation, and disable proxy subdomains again.

    I've submitted bug report 6757893
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, internal case FB-195789 is open to address an issue where if you have "Proxy subdomain creation" set to "Off" in "WHM >> Tweak Settings", then upgrade to cPanel version 11.50, "/scripts/proxydomains" is ran and adds entries to all DNS zones. The current workaround is to run the following command after updating to remove proxy subdomains for all users:

    Code:
    /scripts/proxydomains remove
    Thank you.
     
Loading...

Share This Page