From: Tom Hughes Date: Sat, 18 Apr 2020 23:27:40 +0000 (+0100) Subject: Don't write an entry to the weighted lookup when all servers are down X-Git-Url: https://git.openstreetmap.org./dns.git/commitdiff_plain/fd06d5bb7974a4ce6bde7d86ab9f2c3083f2b39c Don't write an entry to the weighted lookup when all servers are down --- diff --git a/bin/mkgeo b/bin/mkgeo index 8cb4687..0b38881 100755 --- a/bin/mkgeo +++ b/bin/mkgeo @@ -339,7 +339,7 @@ if (defined($gdnsname)) { my $name = $cluster->{name}; - if (@{$cluster->{servers}} > 1) + if (@{$cluster->{servers}} > 1 && grep { $_->{status} eq "up" } @{$cluster->{servers}}) { $gdnsweightedfile->print("${name} => {\n");