浏览代码

Update dns_miab.sh

The MIAB API requires that the txtvlaue to a TXT record includes the "value=" and "ttl=" components as part of the TXT record when adding a new record.
Roland Giesler 1 年之前
父节点
当前提交
435bb3f1d3
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      dnsapi/dns_miab.sh

+ 2 - 1
dnsapi/dns_miab.sh

@@ -19,7 +19,8 @@ dns_miab_add() {
   txtvalue=$2
   _info "Using miab challange add"
   _debug fulldomain "$fulldomain"
-  _debug txtvalue "$txtvalue"
+  # Added to accomodate the new TXT record format used by the API
+  _debug txtvalue "value="+="$txtvalue"+"&ttl=300"
 
   #retrieve MIAB environemt vars
   if ! _retrieve_miab_env; then