mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-19 15:32:59 +02:00
dns.cgi: Timeout after 2 seconds for DNS server checks
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -759,12 +759,8 @@ sub grab_address_from_file($) {
|
||||
sub check_nameserver($$$$) {
|
||||
my ($nameserver, $record, $proto, $tls_hostname) = @_;
|
||||
|
||||
# Timout for the query in seconds.
|
||||
my $timeout;
|
||||
my $retry = "+retry=0";
|
||||
|
||||
# Default values.
|
||||
my @command = ("kdig", "$timeout", "$retry", "+dnssec",
|
||||
my @command = ("kdig", "+timeout=2", "+retry=0", "+dnssec",
|
||||
"+bufsize=1232");
|
||||
|
||||
# Handle different protols.
|
||||
|
||||
Reference in New Issue
Block a user