Browse Source

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

Phil Porada 5 years ago
parent
commit
6b817d4563
1 changed files with 2 additions and 1 deletions
  1. 2 1
      dnsapi/dns_linode_v4.sh

+ 2 - 1
dnsapi/dns_linode_v4.sh

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