Explorar o código

Set TXT record TTL to minimum possible value (#2465)

Phil Porada %!s(int64=6) %!d(string=hai) anos
pai
achega
6b817d4563
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      dnsapi/dns_linode_v4.sh

+ 2 - 1
dnsapi/dns_linode_v4.sh

@@ -31,7 +31,8 @@ dns_linode_v4_add() {
   _payload="{
               \"type\": \"TXT\",
               \"name\": \"$_sub_domain\",
-              \"target\": \"$txtvalue\"
+              \"target\": \"$txtvalue\",
+              \"ttl_sec\": 300
             }"
 
   if _rest POST "/$_domain_id/records" "$_payload" && [ -n "$response" ]; then