The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

DNS Zone Templates

Discussion in 'Bind / DNS / Nameserver Issues' started by ChrisFirth, Jul 3, 2009.

  1. ChrisFirth

    ChrisFirth Active Member
    PartnerNOC

    Joined:
    Apr 10, 2008
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    DataCenter Provider
    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. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    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. ChrisFirth

    ChrisFirth Active Member
    PartnerNOC

    Joined:
    Apr 10, 2008
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    DataCenter Provider
    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. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    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
     
Loading...

Share This Page