]> git.openstreetmap.org Git - dns.git/commitdiff
Fix CNAMES returned by geodns
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 e02fbeeb27331b7599b91492230875223dbf2436..881f2686342f8ae6be90c611405d7ad57fad960c 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");
         }
     }