]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
unbound: Omit reverse PTRs if address equals GREEN
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 15 Oct 2016 21:32:21 +0000 (22:32 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 15 Oct 2016 21:34:43 +0000 (22:34 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/init.d/unbound

index 4c6b452225a1876c9b8c03cd7c516ce05a0a675a..4e424775edf1f221b354f790c5139de9f2a071e1 100644 (file)
@@ -138,6 +138,9 @@ update_hosts() {
 
                unbound-control -q local_data "${fqdn} ${LOCAL_TTL} IN A ${address}"
 
+               # Skip reverse resolution if the address equals the GREEN address
+               [ "${address}" = "${GREEN_ADDRESS}" ] && continue
+
                # Add RDNS
                address=$(ip_address_revptr ${address})
                unbound-control -q local_data "${address} ${LOCAL_TTL} IN PTR ${fqdn}"