Skip to content

Commit

Permalink
dns_zonenodes: fix rdns zones by removing out-of-zone lines
Browse files Browse the repository at this point in the history
  • Loading branch information
1977er committed Dec 16, 2018
1 parent cbbf949 commit 8654f6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion roles/dns_zonenodes/templates/knoten_compile.pl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ print ' 1w ; slave copy expire time'."\n";
print ' 1h ; NXDOMAIN cache time'."\n";
print ' )'."\n";
print ''."\n";
print "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.0.0.0.e.e.f.f.a.c.d.f.ip6.arpa. IN PTR n.ffh.zone.\n";
# print "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.0.0.0.e.e.f.f.a.c.d.f.ip6.arpa. IN PTR n.ffh.zone.\n";
{% for ns in dns_authoritative_nameserver %}
print '@ IN NS {{ns.nameserver}}'."\n";
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion roles/dns_zonenodes/templates/knoten_compile.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ cd /etc/nsd/zones
perl knoten_compile.pl forward {{ dns_zonenodes_nodedomain }} > {{ dns_zonenodes_nodedomain }}.zone
perl knoten_compile.pl reverse {{ dns_zonenodes_nodedomain }} > {{ dns_zonenodes_rdnsdomain }}.zone

cat rdns.zone.inc >> {{ dns_zonenodes_rdnsdomain }}.zone
# cat rdns.zone.inc >> {{ dns_zonenodes_rdnsdomain }}.zone

/usr/sbin/nsd-control reload | grep -ve '^ok$'

0 comments on commit 8654f6c

Please sign in to comment.