From 862febc227f402f603e2181f2e06b974242e9724 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 6 Dec 2019 09:24:13 +0000 Subject: [PATCH] Route DNS for multi-node caches through the weighted plugin --- bin/mkgeo | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/mkgeo b/bin/mkgeo index 2e0ac00..0df8c32 100755 --- a/bin/mkgeo +++ b/bin/mkgeo @@ -331,8 +331,6 @@ if (defined($gdnsname)) { my $name = $cluster->{name}; - $gdnsresourcefile->print(" ${name} => ${name}.${zone}.\n"); - if (@{$cluster->{servers}} > 1) { $gdnsweightedfile->print("${name} => {\n"); @@ -349,6 +347,12 @@ if (defined($gdnsname)) } $gdnsweightedfile->print("}\n"); + + $gdnsresourcefile->print(" ${name} => %weighted!${name}\n"); + } + else + { + $gdnsresourcefile->print(" ${name} => ${name}.${zone}.\n"); } } -- 2.39.5