From 737e782ae6f889765e6ce9d4257f01d12a3019a5 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 7 Apr 2020 22:48:03 +0100 Subject: [PATCH] Drop unused A records for clustered CDN nodes --- bin/mkgeo | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/mkgeo b/bin/mkgeo index 9cfb6c1..ce0ff2f 100755 --- a/bin/mkgeo +++ b/bin/mkgeo @@ -273,12 +273,14 @@ foreach my $cluster (sort { $a->{name} cmp $b->{name} } values %$clusters) { my $name = $cluster->{name}; - output_server($zonefile, "${name}.${zone}", $cluster); - if (@{$cluster->{servers}} > 1) { output_server($zonefile, "${name}-%02d.${zone}", $cluster); } + else + { + output_server($zonefile, "${name}.${zone}", $cluster); + } } # Output the GeoJSON text -- 2.39.5