Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Feb 2010
    Posts
    1

    Default My DNS Zone Template

    Hello Guys,

    I'm editing my standardvirtualftp under Edit Zone Templates.
    I just added the following lines to my existing template to have local nameserver created.

    ns1 IN A %ip%
    ns2 IN A %ip2%
    ns3 IN A %ip3%
    ns4 IN A %ip4%

    Then I got the following error...

    Missing key(s): ip2 at line 17 when including template STDIN. Line: ns2 IN A %ip2%
    Missing key(s): ip3 at line 18 when including template STDIN. Line: ns3 IN A %ip3%
    Missing key(s): ip4 at line 19 when including template STDIN. Line: ns4 IN A %ip4%


    It seems that %ip2% %ip3% and %ip4% are wrong values.

    Can anybody help me with the correct values? Thanks in advance.

  2. #2
    Member cpanelinfoseeker's Avatar
    Join Date
    Oct 2002
    Location
    NE Illinois
    Posts
    320

    Default

    Mine has this code:

    %nameserverentry%. IN A %nameservera%
    %nameserverentry2%. IN A %nameservera2%
    %nameserverentry3%. IN A %nameservera3%
    %nameserverentry4%. IN A %nameservera4%

    Hope this helps,
    Ron

  3. #3
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by Yujin View Post
    Hello Guys,

    I'm editing my standardvirtualftp under Edit Zone Templates.
    I just added the following lines to my existing template to have local nameserver created.

    ns1 IN A %ip%
    ns2 IN A %ip2%
    ns3 IN A %ip3%
    ns4 IN A %ip4%

    Then I got the following error...

    Missing key(s): ip2 at line 17 when including template STDIN. Line: ns2 IN A %ip2%
    Missing key(s): ip3 at line 18 when including template STDIN. Line: ns3 IN A %ip3%
    Missing key(s): ip4 at line 19 when including template STDIN. Line: ns4 IN A %ip4%


    It seems that %ip2% %ip3% and %ip4% are wrong values.

    Can anybody help me with the correct values? Thanks in advance.
    The custom entries added are not valid. By default, the stock DNS zone templates already allow for name server entries to be present, as correctly indicated by cpanelinfoseeker:
    Quote Originally Posted by cpanelinfoseeker View Post
    Mine has this code:

    %nameserverentry%. IN A %nameservera%
    %nameserverentry2%. IN A %nameservera2%
    %nameserverentry3%. IN A %nameservera3%
    %nameserverentry4%. IN A %nameservera4%

    Hope this helps,
    Ron
    For reference, here are the contents of the stock-default DNS zone template at /var/cpanel/zonetemplates/standardvirtualftp:
    Code:
    ; cPanel %cpversion%
    ; Zone file for %domain%
    $TTL %ttl%
    @      %nsttl%    IN      SOA     %nameserver%. %rpemail%. (
            %serial%    ; serial, todays date+todays
            86400        ; refresh, seconds
            7200        ; retry, seconds
            3600000        ; expire, seconds
            86400 )        ; minimum, seconds
    
    %domain%. %nsttl% IN NS %nameserver%.
    %domain%. %nsttl% IN NS %nameserver2%.
    %domain%. %nsttl% IN NS %nameserver3%.
    %domain%. %nsttl% IN NS %nameserver4%.
    
    %nameserverentry%. IN A %nameservera%
    %nameserverentry2%. IN A %nameservera2%
    %nameserverentry3%. IN A %nameservera3%
    %nameserverentry4%. IN A %nameservera4%
    
    %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%

  4. #4
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    To add to Donald's reply, the template variables in the stock template are the only variables available.
    Kenneth
    Product Manager
    cPanel, Inc.

Similar Threads & Tags
Similar threads

  1. Wildcard in DNS Zone Template
    By mwaterous in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-22-2010, 02:10 AM
  2. DNS Zone Template problem - Help-me Please
    By fcbinfo in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-31-2009, 01:58 PM
  3. DNS Zone Template Variables
    By rkm11 in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 12-25-2008, 09:01 PM
  4. Dns Zone Template
    By reactorh in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-27-2007, 11:55 AM
  5. DNS Zone Template Editor
    By asterisk in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 04-12-2006, 10:46 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube