
Originally Posted by
Yujin
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:

Originally Posted by
cpanelinfoseeker
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%