ids-functions.pl: Fall back to $EXTERNAL_NET for DNS servers

When no DNS servers are configured (aka recursor mode), the
DNS servers that unbound will try to contact can be anywhere.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2020-01-30 13:07:01 +01:00
parent b76118c32c
commit 99cadb743a

View File

@@ -718,10 +718,7 @@ sub generate_dns_servers_file() {
if (@nameservers) {
$line = join(",", @nameservers);
} else {
# The responsible DNS servers on red are directly used, and because we are not able
# to specify each single DNS server address here, we currently have to thread each
# address which is not part of the HOME_NET as possible DNS server.
$line = "!\$HOME_NET";
$line = "\$EXTERNAL_NET";
}
# Open file to store the used DNS server addresses.