Permalink
Browse files

dns_zonenodes: fix rdns zones by removing out-of-zone lines

  • Loading branch information...
1977er committed Dec 16, 2018
1 parent cbbf949 commit 8654f6c2d10eea4a290b75d81bc1759518829bbf
@@ -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 %}
@@ -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.