shorten dns ttl
This commit is contained in:
1 parent
fc64bf45d2
commit
3e72ea7e0a
1 file changed
+2
-2
+2
-2
@@ -203,7 +203,7 @@ if [[ "$SCRIPT_ACTION" == "a" ]]; then
|
|||||||
"type": "A",
|
"type": "A",
|
||||||
"name": "'$NI_SUBDOMAIN'",
|
"name": "'$NI_SUBDOMAIN'",
|
||||||
"target": "'$INSTANCE_IP'",
|
"target": "'$INSTANCE_IP'",
|
||||||
"ttl_sec": 14400
|
"ttl_sec": 600
|
||||||
}' \
|
}' \
|
||||||
https://api.linode.com/v4/domains/$WHICH_DOMAIN/records/$RECORD_ID | jq .
|
https://api.linode.com/v4/domains/$WHICH_DOMAIN/records/$RECORD_ID | jq .
|
||||||
|
|
||||||
@@ -221,7 +221,7 @@ if [[ "$SCRIPT_ACTION" == "a" ]]; then
|
|||||||
"type": "A",
|
"type": "A",
|
||||||
"name": "'$NI_SUBDOMAIN'",
|
"name": "'$NI_SUBDOMAIN'",
|
||||||
"target": "'$INSTANCE_IP'",
|
"target": "'$INSTANCE_IP'",
|
||||||
"ttl_sec": 14400
|
"ttl_sec": 600
|
||||||
}' \
|
}' \
|
||||||
https://api.linode.com/v4/domains/$WHICH_DOMAIN/records | jq .
|
https://api.linode.com/v4/domains/$WHICH_DOMAIN/records | jq .
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user