#1 (permalink)  
Old 07-03-2009, 03:36 AM
Registered User
 
Join Date: Apr 2008
Posts: 17
ChrisFirth is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-03-2009, 12:10 PM
cPanelDavidG's Avatar
cPanel Sales Support
 
Join Date: Nov 2006
Location: Houston, TX
Posts: 7,985
cPanelDavidG is on a distinguished road
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.
__________________
Want our technical analysts to login to your server to assist you? You can contact our technical analysts at: http://tickets.cPanel.net/submit
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-05-2009, 10:48 PM
Registered User
 
Join Date: Apr 2008
Posts: 17
ChrisFirth is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-06-2009, 04:08 PM
Spiral's Avatar
Registered User
 
Join Date: Jun 2005
Location: Area 51
Posts: 1,476
Spiral is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS Zone Templates problem karlos cPanel and WHM Discussions 18 11-26-2008 12:54 PM
Adding DNS Zone Templates infinitymedia cPanel and WHM Discussions 0 12-15-2007 06:55 PM
%ttl% variable in DNS zone templates? jez9999 cPanel and WHM Discussions 2 08-24-2005 05:20 PM
Dns zone templates for resellers remik cPanel and WHM Discussions 0 04-09-2005 12:56 PM
DNS Zone Templates Stevez cPanel and WHM Discussions 1 09-06-2004 02:19 AM


All times are GMT -5. The time now is 01:27 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc