Skip to main content
cPanel Technical Support has been heavily impacted by hurricane Beryl and our ability to respond to tickets has been hindered as a result. We appreciate your understanding and patience as we address these delays.

Preventing cPanel from creating various zone records for addon domains

Comments

3 comments

  • cPRex Jurassic Moderator

    Hey there!  I don't have a way to change this behavior for only addon domains, but you can control this in general on the system through WHM >> Tweak Settings by turning off the "Service subdomains" option.  That will only create the following records:

    # cat dnstest2.com.db 
    ; cPanel first:120.0.5 (update_time):1715268295 Cpanel::ZoneFile::VERSION:1.3 hostname:10-2-35-128.cprapid.com latest:120.0.5
    ; Zone file for dnstest2.com
    $TTL 14400
    dnstest2.com.    86400    IN    SOA    ns1.10-2-35-128.cprapid.com.    blah.blah.com.    (
                            2024050901 ;Serial Number
                            3600 ;refresh
                            1800 ;retry
                            1209600 ;expire
                            86400    )
    dnstest2.com.    86400    IN    NS    ns1.10-2-35-128.cprapid.com.
    dnstest2.com.    86400    IN    NS    ns2.10-2-35-128.cprapid.com.
    dnstest2.com.    14400    IN    A    10.2.35.128
    dnstest2.com.    14400    IN    MX    0    dnstest2.com.
    mail    14400    IN    CNAME    dnstest2.com.
    www    14400    IN    CNAME    dnstest2.com.
    ftp    14400    IN    A    10.2.35.128
    dnstest2.com.    14400    IN    TXT    "v=spf1 +a +mx +ip4:10.2.35.128 ~all"
    default._domainkey    14400    IN    TXT    "v=DKIM1\; k=rsa\; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAw6AuwsOUTcavX4lQbr/1TzUNq+yGAtSJ/qxNIgDPLJN9UgGRaGy7z3E2FG+cJNMX/wPhA5e1fEtFfvTBKjK+smXGynnG+pG2Keob4hJVomA6RriDEhGgNwgM7AUmSDnZOzjewvYgfMFAidC8J5or/Wx43AwCFvQWSU62gNiEZnPFk1r9XRJ2nGTgTlJnEJqKk" "PF2QZZcZ27FIwq3SFailv+ZyUbnO1ODCgaTqaiZJ28dOPNuHtty4ac65tT1Y4M4jqX8182Qf5WE66ZPS1NcbTmZNwoT9bsgmXVmwzF9SVsZ6rD+MqJT7uu8AmikFeC/sbK6gWOyyWhS6Bs05VZjPQIDAQAB\;"
    0
  • blade304

    Thanks cPRex! And how about records such as CNAME ftp, mail or TXT with "spf"?

    0
  • cPRex Jurassic Moderator

    I don't have a way to stop those from happening - do you not plan to send mail from that domain ever?

    If not, you could consider editing the "standard" zone template as that applies to addon domains, and that would let you remove those records:

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

    Note that would also affect any new domains you create on dedicated IPs if that applies to your situation.

    0

Please sign in to leave a comment.