Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Apr 2005
    Posts
    12

    Unhappy Where to find default zone templates?

    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.

  2. #2
    Member
    Join Date
    Jul 2004
    Posts
    68

    Default

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

  3. #3
    Member
    Join Date
    Apr 2005
    Posts
    12

    Default

    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?

  4. #4
    Member lankyb's Avatar
    Join Date
    Sep 2004
    Location
    Peterborough, UK
    Posts
    104

    Default

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

  5. #5
    Member
    Join Date
    Apr 2005
    Posts
    12

    Default

    Nope, still the same error , any other ideas?

    P.S. Thanks for your help so far.

  6. #6
    Member lankyb's Avatar
    Join Date
    Sep 2004
    Location
    Peterborough, UK
    Posts
    104

    Default

    Could you provide us a copy of what your trying to do, to see if we see your problem?

  7. #7
    Member
    Join Date
    Apr 2005
    Posts
    12

    Default

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

  8. #8
    Member lankyb's Avatar
    Join Date
    Sep 2004
    Location
    Peterborough, UK
    Posts
    104

    Default

    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

  9. #9
    Member
    Join Date
    Apr 2005
    Posts
    12

    Default

    Might I need to reinstall cpanel? Could something be corrupt on it?

  10. #10
    Member lankyb's Avatar
    Join Date
    Sep 2004
    Location
    Peterborough, UK
    Posts
    104

    Default

    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.

Similar Threads & Tags
Similar threads

  1. variables for zone templates
    By cesarlwh in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-21-2009, 02:05 PM
  2. DNS Zone Templates
    By ChrisFirth in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-06-2009, 03:08 PM
  3. Need to find the path to templates
    By jimmack in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-22-2009, 08:31 AM
  4. Zone templates
    By ruzster in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-06-2006, 02:29 PM
  5. editing zone templates
    By mc0 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-06-2005, 05:49 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube