dns.cgi: Perform kdig tests only if the system is online.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2020-01-08 11:13:05 +01:00
parent f36855fe73
commit 70187da6a6

View File

@@ -781,6 +781,11 @@ sub grab_address_from_file($) {
sub check_nameserver($$$$) {
my ($nameserver, $record, $proto, $tls_hostname) = @_;
# Check if the system is online.
unless (&red_is_active()) {
return "$Lang::tr{'system is offline'}";
}
# Default values.
my @command = ("kdig", "+timeout=2", "+retry=0", "+dnssec",
"+bufsize=1232");