Skip to main content

Zone template - How to define and use

Comments

7 comments

  • cPanelMichael
    Hello @Renato Alves Nogueira,
    When i create a new domain the dns zone it"s created only with the one A record.

    Can you confirm the method you are using to review the DNS zone after the account is created? Is the domain setup as part of a new cPanel account, or was it added as an alias/addon domain? Also, which zone template did you modify, and what entries are configured in that zone template? Thank you.
    0
  • Renato Alves Nogueira
    Hello @Renato Alves Nogueira, [QUOTE="Can you confirm the method you are using to review the DNS zone after the account is created?"/QUOTE] After create a new domain i go to zone editor in cpanel to check if the Records were created as expected. [QUOTE="Is the domain setup as part of a new cPanel account, or was it added as an alias/addon domain?"/QUOTE] I have not created none alias or addon domain, neither throught cpanel nor direct in WHM. [QUOTE="Also, which zone template did you modify, and what entries are configured in that zone template?/QUOTE] The only zone template I tried to use was the simple one, once my dns zones was creating only the mx record is created, I assumed that the zone template used has been the simple. The change i did was add a new line with a custom FTP address A record on the simple template. In my perception the zone created with that record would confirm the correct funcionating the template. Look my simple template and bellow attached my dns zone. FTP record is the custom added by me. ; cPanel %cpversion% ; Zone file for %domain% $TTL %ttl% @ %nsttl% IN SOA %nameserver%. %rpemail%. ( %serial% ; serial, todays date+todays 3600 ; refresh, seconds 7200 ; 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% %domain%. IN MX 0 %domain%. %domain%. IN A %ip% ftp. IN A 127.0.0.1

    0
  • Renato Alves Nogueira
    A complementar information. The dns zone in WHM there is a lot of records. Attached.
    0
  • cPanelMichael
    Hello @Renato Alves Nogueira, You'll need to edit the standardvirtualftp zone template if you want that A record setup in the DNS zone of new accounts created using WHM >> Create A New Account (assuming the new account is assigned a shared IP address). The simple zone template is only for new zones created outside of the account creation process. Thank you.
    0
  • Renato Alves Nogueira
    Hello @Renato Alves Nogueira, You'll need to edit the standardvirtualftp zone template if you want that A record setup in the DNS zone of new accounts created using WHM >> Create A New Account (assuming the new account is assigned a shared IP address). The simple zone template is only for new zones created outside of the account creation process. Thank you.

    Hy, Michael, Thank you for your answer. I tried here and it works like expected... but not solved my problem. It was My fault to relate a wrong problem based in my perception.the real situation it"s a bit different and maybe easier. The question is that when i create a new domain, the dnz zone records are created accordly and I can see all of them in WHM DNS Zone. Ok, that"s working. But, when i go to Cpanel DNS Zone Editor, these records are hidden and i see only the MX and custom records. Maybe there is some settings to change this but i don"t know where. Take a look on the print"s to understand better.
    0
  • Renato Alves Nogueira
    I found It". I am continuing to setup WHM and when arrived in /package/feature Manager/ I took a look in 'Default' feature and see the option 'zone editor (AAAA, CAA, SRV, TXT)' was unchecked. After check it all DNS Records show up in zone editor. Thank you very much for your help Michael.
    0
  • cPanelMichael
    I found It". I am continuing to setup WHM and when arrived in /package/feature Manager/ I took a look in 'Default' feature and see the option 'zone editor (AAAA, CAA, SRV, TXT)' was unchecked. After check it all DNS Records show up in zone editor. Thank you very much for your help Michael.

    Hi @Renato Alves Nogueira, I'm glad to see you were able to address the issue. Thank you for sharing the outcome.
    0

Please sign in to leave a comment.