HostOnNet Blog

Cpanel DNS Zone Template files

Looking for Linux Server Admin or WordPress Expert? We can help.

In Cpanel Server, DNS Zone templates are located at

/var/cpanel/zonetemplates

# cd /var/cpanel/zonetemplates
# ls
simple standard standardvirtualftp
#

Following are the content of DNS Zone Template files. When new domain is added, these templates are used to create new DNS Zone file in /var/named/domainname.extn.db

#cat /var/cpanel/zonetemplates/standard

; cPanel %cpversion%
; Zone file for %domain%
$TTL %ttl%
@ IN SOA %nameserver%. %rpemail%. (
%serial% ; serial, todays date+todays
14400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds

%domain%. IN NS %nameserver%.
%domain%. IN NS %nameserver2%.
%domain%. IN NS %nameserver3%.
%domain%. IN NS %nameserver4%.

%domain%. IN A %ip%

localhost.%domain%. IN A 127.0.0.1

%domain%. IN MX 0 %domain%.

mail IN CNAME %domain%.
www IN CNAME %domain%.
ftp IN CNAME %domain%.

#

# cat /var/cpanel/zonetemplates/simple
; cPanel %cpversion%
; Zone file for %domain%
$TTL %ttl%
@ IN SOA %nameserver%. %rpemail%. (
%serial% ; serial, todays date+todays
14400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds

%domain%. IN NS %nameserver%.
%domain%. IN NS %nameserver2%.
%domain%. IN NS %nameserver3%.
%domain%. IN NS %nameserver4%.

%domain%. IN A %ip%

localhost.%domain%. IN A 127.0.0.1

%domain%. IN MX 0 %domain%.
#

Posted in Windows. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.