/usr/share/zentyal/stubs/dns/dbrev.mas is in zentyal-dns 2.3.3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | <%args>
%rdata
</%args>
<%init>
my @time = localtime();
my $date = sprintf("%04d%02d%02d%02d",$time[5]+1900,$time[4]+1,$time[3],$time[2]);
my $directDomain = $rdata{'domain'}->[0]->{'name'};
</%init>
$TTL 3D
$ORIGIN <% $rdata{'groupip'} %>.in-addr.arpa.
@ IN SOA ns.<% $directDomain %>. hostmaster.<% $directDomain %>. (
<% $date %> ;serial number
8H ;refresh
2H ;retry
4W ;expiration
1D ) ;
;
% foreach my $groupItem(@{$rdata{'domain'}})
% {
NS ns.<% $groupItem->{'name'} %>. ;nameserver
% }
;
% foreach my $groupItem(@{$rdata{'domain'}})
% {
% foreach my $host(@{$groupItem->{'hosts'}}) {
% my $prefix = '';
% if ( $host->{'name'} ) {
% $prefix .= $host->{'name'} . '.';
% }
<% $host->{'ip'} %> PTR <% $prefix . $groupItem->{'name'} %>.
% }
% }
|