Skip to main content

Disable Autogenerate www and mail for subdomain

Comments

3 comments

  • User Avatar
    cPanelLauren

    Hello, You'd want to edit the DNS zone file templates for these. The standard template shows as follows: ; cPanel %cpversion% ; Zone file for %domain% $TTL %ttl% @ %nsttl% IN SOA %nameserver%. %rpemail%. ( %serial% ; serial, todays date+todays 3600 ; refresh, seconds 1800 ; retry, seconds 1209600 ; 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% ipv6 IN AAAA %ipv6% %domain%. IN MX 0 %domain%. mail IN CNAME %maildomain%. www IN CNAME %domain%. ftp IN CNAME %domain%.

    Documentation on this can be found here:

    https://docs.cpanel.net/whm/dns-functions/edit-zone-templates/

    0
  • User Avatar
    tebokkel
    Sorry to revive this old thread, but this is no solution. I've done this, but now get DCV and AutoSSL errors on the missing mail DNS entry. Grrrrr
    0
  • User Avatar
    cPRex Jurassic Moderator
    AutoSSL will send notifications if the domain is present in Apache but doesn't exist in DNS. Normally this is a good thing as users would want to know there is a DNS issue, but you can just ignore those messages due to your custom configuration. You could always disable this option in WHM >> Contact Manager: "AutoSSL has renewed a certificate, but the new certificate lacks one or more of the website"s domains." but then you run the risk of missing out on important notifications for other domains.
    0

Please sign in to leave a comment.