]> WPIA git - gigi.git/blobdiff - doc/jenkinsJob/dyn-txt.php
UPD: rename dns-txt testdomain to "<string>._cacert._auth.domain.tld"
[gigi.git] / doc / jenkinsJob / dyn-txt.php
index 7914b986945ed274c91066ccf8abb244c10a68fc..c7b6cfeccb387ea9d363abc2696133955d2d31ec 100644 (file)
@@ -33,8 +33,8 @@ if($_GET['action'] == "http"){
   file_put_contents("cacert-$t1.txt", $t2);
 } else if($_GET['action'] == "dns") {
   $todelete[$time][] = array("dns", $t1);
-  $dnscalls .= "update delete cacert-{$t1}." . ZONENAME . " TXT\n"
-    ."update add cacert-{$t1}." . ZONENAME . " 60 TXT {$t2}\n";
+  $dnscalls .= "update delete {$t1}._cacert._auth." . ZONENAME . " TXT\n"
+    ."update add {$t1}._cacert._auth." . ZONENAME . " 60 TXT {$t2}\n";
 }
 $copy = $todelete;
 foreach($copy as $nt => $ar){
@@ -44,7 +44,7 @@ foreach($copy as $nt => $ar){
       if($act[0] == "http"){
         unlink("cacert-{$act[1]}.txt");
       } else if($act[0] == "dns") {
-        $dnscalls .= "update delete cacert-{$act[1]}." . ZONENAME . " TXT\n";
+        $dnscalls .= "update delete {$act[1]}._cacert._auth." . ZONENAME . " TXT\n";
       }
     }
   }