summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/etc/inc/unbound.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/etc/inc/unbound.inc b/src/etc/inc/unbound.inc
index 492d5ae..c716d1a 100644
--- a/src/etc/inc/unbound.inc
+++ b/src/etc/inc/unbound.inc
@@ -326,7 +326,9 @@ forward-zone:
EOD;
foreach ($dnsservers as $dnsserver) {
- $forward_conf .= "\tforward-addr: $dnsserver\n";
+ if (is_ipaddr($dnsserver) && !ip_in_subnet($dnsserver, "127.0.0.0/8")) {
+ $forward_conf .= "\tforward-addr: $dnsserver\n";
+ }
}
}
} else {
OpenPOWER on IntegriCloud