Reverse DNS zone generation
Saltar para a navegação
Saltar para a pesquisa
Zentyal creates reverse DNS zones for each IP defined on the forward zone Example:
zone for 192.168.6.0/24 -> OK zone for 192.168.2.0/24 -> NOT OK zone for 89.109.64.0/24 -> NOT OK
Since I think this is not right I created issue for enhancement:
https://github.com/zentyal/zentyal/issues/1959
Workaround
Created a reverse zone file: /etc/bind/6.168.192.zone
-rw-r--r-- 1 root bind 463 Apr 12 12:56 /etc/bind/6.168.192.zone
with the following contents
#CA20200412 - created this reverse zone manually to overcome the issue where Zentyal generates either all reverse zones or no reverse zones at all zone "6.168.192.in-addr.arpa" { type master; file "/var/lib/bind/db.6.168.192"; update-policy { // The only allowed dynamic updates are PTR records grant arditi.pt. subdomain 6.168.192.in-addr.arpa. PTR TXT; // Grant from localhost grant local-ddns zonesub any; }; };
Changed the generate_reverse_zones configuration key from yes to no in /etc/zentyal/dns.conf
Added a new stub
sudo cp /usr/share/zentyal/stubs/dns/named.conf.mas /etc/zentyal/stubs/dns/
Edited the stub to include the folloing line:
include "/etc/bind/6.168.192.zone";