Where to find default zone templates?

Ixel

Member
Apr 3, 2005
12
0
151
Hi all,
This might sound like a newbie'ish question but, I can't find anywhere to reset my zone templates to the original defaults in WHM. I searched the forums but couldn't find a thread with the information I was looking for, so could someone help please?

Thanks,
Paul.
 

Specks

Well-Known Member
Jul 3, 2004
68
0
156
Well I haven't modified the zone templates for my server so here's what I have.

simple zone template
Code:
; 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%.
standard zone template
Code:
; 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%.
standard virtual FTP
Code:
; 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 A %ftpip%
 

Ixel

Member
Apr 3, 2005
12
0
151
Thanks Specks, but I have another problem when trying to change to the default templates.

There were errors in the new zone template which have been highlighted below, please press the back button an try again!

zonetemplate/IN: could not find NS and/or SOA records
zonetemplate/IN: has 0 SOA records
zonetemplate/IN: has no NS records
Any ideas?
 

lankyb

Well-Known Member
Sep 21, 2004
99
0
166
Peterborough, UK
make sure the following is correct:

Code:
@      IN      SOA     %nameserver%. %rpemail%. (
you need to make sure you have kept the special characters the same. For instance, you need to keep the '@' at the start, the full stops '.' after the NS and Email addresses, and the open bracket at the end '('.

Example:

Code:
@      IN      SOA     ns1.sampledomain.com. admin.sampledomain.com. (
 

Ixel

Member
Apr 3, 2005
12
0
151
Nope, still the same error :(, any other ideas?

P.S. Thanks for your help so far.
 

Ixel

Member
Apr 3, 2005
12
0
151
Here's the page for the standard zone template, when it fails of course (with the zone configuration):
There were errors in the new zone template which have been highlighted below, please press the back button an try again!

zonetemplate/IN: could not find NS and/or SOA records
zonetemplate/IN: has 0 SOA records
zonetemplate/IN: has no NS records

; cPanel %cpversion%
; Zone file for %domain%
$TTL %ttl%
@ IN SOA ns1.ixel-host.net. webmaster.ixel-host.net. (
%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%
ns1. IN A 72.36.163.82
ns2. IN A 72.36.163.83

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%.
 

lankyb

Well-Known Member
Sep 21, 2004
99
0
166
Peterborough, UK
I looked at it and saw no problems, so i added it to my test server to see what it comes up with...... it found no problems as you are describing.

The only error messages i got was:

Code:
dns_master_load: /var/named/editzonetemplate.root.db.test:16: ignoring out-of-zone data (ns1)
dns_master_load: /var/named/editzonetemplate.root.db.test:17: ignoring out-of-zone data (ns2)
zonetemplate/IN: loaded serial 2005070200
OK


Your Template has been saved
 

lankyb

Well-Known Member
Sep 21, 2004
99
0
166
Peterborough, UK
I would not go as far as reinstalling cPanel over something so small.... and i would say nothing is currupted by the looks of it or would would have more problems. The problem might just be that you are running a older version of bind.

Best way to get things sorted is to send a support request to cPanel, or your cPanel license provider to help you with the matter. They will be able to look at your machine, and fix the problem. :)