Fix CNAMES returned by geodns master
authorTom Hughes <tom@compton.nu>
Mon, 17 Feb 2020 19:12:59 +0000 (19:12 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 17 Feb 2020 19:12:59 +0000 (19:12 +0000)
bin/mkgeo

index e02fbee..881f268 100755 (executable)
--- a/bin/mkgeo
+++ b/bin/mkgeo
@@ -348,7 +348,7 @@ if (defined($gdnsname))
                     my $number = sprintf("%02d", $index + 1);
                     my $bandwidth = $server->{bandwidth};
 
-                    $gdnsweightedfile->print("  ${name}-${number} = [ ${name}-${number}.${zone}., ${bandwidth} ]\n");
+                    $gdnsweightedfile->print("  ${name}-${number} = [ ${name}-${number}.${zone}.openstreetmap.org., ${bandwidth} ]\n");
                 }
             }
 
@@ -358,7 +358,7 @@ if (defined($gdnsname))
         }
         else
         {
-            $gdnsresourcefile->print("    ${name} => ${name}.${zone}.\n");
+            $gdnsresourcefile->print("    ${name} => ${name}.${zone}.openstreetmap.org.\n");
         }
     }