Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2008
    Posts
    25
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default DNS Zone Templates

    Hi all,

    Does anyone know where the DNS zone templates are stored on a cPanel server, with basically the default settings? If it helps the O/S is Centos 5.3.

    I have edited the "standardvirtualftp" template through WHM, but I also need to change it on a clone image that I have for future deployments. Rather than re-imaging the server I have mounted the dd image and I can see these files that match by name:

    /usr/local/cpanel/cpupdatepatches/var/cpanel/zonetemplates/__revision1/patches/standardvirtualftp
    /usr/local/cpanel/etc/zonetemplates/standardvirtualftp
    /var/cpanel/zonetemplates/standardvirtualftp

    I have checked those files, but the changes I have made in the "standardvirtualftp" template through WHM are not reflected in those files.

    Does anyone know exactly which file WHM edits when you change the zone template?

    Thanks

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by ChrisFirth View Post
    Hi all,

    Does anyone know where the DNS zone templates are stored on a cPanel server, with basically the default settings? If it helps the O/S is Centos 5.3.

    I have edited the "standardvirtualftp" template through WHM, but I also need to change it on a clone image that I have for future deployments. Rather than re-imaging the server I have mounted the dd image and I can see these files that match by name:

    /usr/local/cpanel/cpupdatepatches/var/cpanel/zonetemplates/__revision1/patches/standardvirtualftp
    /usr/local/cpanel/etc/zonetemplates/standardvirtualftp
    /var/cpanel/zonetemplates/standardvirtualftp

    I have checked those files, but the changes I have made in the "standardvirtualftp" template through WHM are not reflected in those files.

    Does anyone know exactly which file WHM edits when you change the zone template?

    Thanks
    If you are editing as root, it would be /var/cpanel/zonetemplates/standardvirtualftp

    If you are editing as a reseller, it would be /var/cpanel/zonetemplates/USERNAME_standardvirtualftp

    Where USERNAME represents your reseller account's username.

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2008
    Posts
    25
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by cPanelDavidG View Post
    If you are editing as root, it would be /var/cpanel/zonetemplates/standardvirtualftp

    If you are editing as a reseller, it would be /var/cpanel/zonetemplates/USERNAME_standardvirtualftp

    Where USERNAME represents your reseller account's username.
    Hi David,

    Thanks for that, I found the template located here:

    /var/cpanel/zonetemplates/root_standardvirtualftp

    So it seems although I was editing the template as root it seems to have appended it the same as a reseller.

  4. #4
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Root is unusual in that it is both the global default administrator
    and is also itself treated as a reseller both at the same time.

    I myself would duplicate the changes you made to the zone files
    to both the "root" reseller and "root" global template files just
    to be totally covered.

    root_simple
    root_standard
    root_standardvirtualftp

    simple
    standard
    standardvirtualftp

Similar Threads & Tags
Similar threads

  1. DNS Zone Templates problem
    By karlos in forum cPanel and WHM Discussions
    Replies: 18
    Last Post: 11-26-2008, 12:54 PM
  2. Adding DNS Zone Templates
    By infinitymedia in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-15-2007, 06:55 PM
  3. %ttl% variable in DNS zone templates?
    By jez9999 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-24-2005, 06:25 AM
  4. Dns zone templates for resellers
    By remik in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-09-2005, 12:56 PM
  5. DNS Zone Templates
    By Stevez in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-06-2004, 02:19 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube