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.

Where to find default zone templates?

Discussion in 'General Discussion' started by Ixel, Jul 1, 2005.

  1. Ixel

    Ixel Member

    Joined:
    Apr 3, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    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. Specks

    Specks Well-Known Member

    Joined:
    Jul 3, 2004
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    6
    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%
    
    
     
  3. Ixel

    Ixel Member

    Joined:
    Apr 3, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Thanks Specks, but I have another problem when trying to change to the default templates.

    Any ideas?
     
  4. lankyb

    lankyb Well-Known Member

    Joined:
    Sep 21, 2004
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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. (
     
  5. Ixel

    Ixel Member

    Joined:
    Apr 3, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Nope, still the same error :(, any other ideas?

    P.S. Thanks for your help so far.
     
  6. lankyb

    lankyb Well-Known Member

    Joined:
    Sep 21, 2004
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Peterborough, UK
    Could you provide us a copy of what your trying to do, to see if we see your problem?
     
  7. Ixel

    Ixel Member

    Joined:
    Apr 3, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Here's the page for the standard zone template, when it fails of course (with the zone configuration):
     
  8. lankyb

    lankyb Well-Known Member

    Joined:
    Sep 21, 2004
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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
     
  9. Ixel

    Ixel Member

    Joined:
    Apr 3, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Might I need to reinstall cpanel? Could something be corrupt on it?
     
  10. lankyb

    lankyb Well-Known Member

    Joined:
    Sep 21, 2004
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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. :)
     
Loading...

Share This Page