Skip to main content

WHM with separate DNS and auto zone creation

Comments

6 comments

  • 24x7server
    Hello :), Have you checked Zone Templates in WHM. Edit Zone Templates - Documentation - cPanel Documentation
    0
  • Soban Khalid
    Hi. Thank you for the reply. Yes, I edited the virtualftp template (which is for shared IP address) and removed everything. It gave an error (attached). Then I removed all the A records from this template, but still zone files are being created for new accounts.
    0
  • cPanelMichael
    I do not want to use DNS server of WHM as separate DNS server is already running, so how can i avoid the automatic zone creation and A records creation (such as mail.vhost1.domain.com, ftp.vhost1.domain.com) in WHM when I create an account?

    Hello :) You can disable the local name server by selecting "Disabled" via: "WHM Home " Service Configuration " Nameserver Selection" You will still see DNS zones in /var/named/, however the name server is not running locally so no additional resources are utilized. The existence of the zones allows for the generation of entries for records that relate to features such as SPF or DKIM (Not active entries, but it shows you which entries to manually add to your own DNS server). Thank you.
    0
  • Soban Khalid
    @cPanelMichael Oh ok. Now I get it :) Thank you very much for explaining this to me :) One more thing...If I am using WHM only for creating subdomains for my domain (e.g. sub1.domain.com, sub2.domain.com, and so on), which is a better way of achieving this: 1. Add New Accounts against each subdomain and in Domain section of Account creation give the subdomain in the Domain option. This way WHM will create zones for each subdomain, as you mentioned. 2. Add a reseller account against my domain. Then add subdomains through this account by going to List Accounts section and navigating to Cpanel of this account. Which is the right way here?
    0
  • cPanelMichael
    You could actually just create new accounts with the subdomain name (e.g. subdomain1.domain.com) while logged into Web Host Manager as "root". There's no need to access cPanel and create an additional subdomain after doing this. Thank you.
    0
  • Soban Khalid
    Thank you :)
    0

Please sign in to leave a comment.