mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-11 19:55:52 +02:00
unbound: Fix reverse lookup zones
These should be stubs and overlay the internal zones that unbound comes with. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Fixes: #11625
This commit is contained in:
@@ -210,10 +210,24 @@ write_forward_conf() {
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "forward-zone:"
|
||||
echo " name: ${zone}"
|
||||
echo " forward-addr: ${server}"
|
||||
echo
|
||||
# Reverse-lookup zones must be stubs
|
||||
case "${zone}" in
|
||||
*.in-addr.arpa)
|
||||
echo "stub-zone:"
|
||||
echo " name: ${zone}."
|
||||
echo " stub-addr: ${server}"
|
||||
echo
|
||||
echo "server:"
|
||||
echo " local-zone: \"${zone}.\" transparent"
|
||||
echo
|
||||
;;
|
||||
*)
|
||||
echo "forward-zone:"
|
||||
echo " name: ${zone}."
|
||||
echo " forward-addr: ${server}"
|
||||
echo
|
||||
;;
|
||||
esac
|
||||
done < /var/ipfire/dnsforward/config
|
||||
|
||||
if [ -n "${insecure_zones}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user