Browse Source
Merge pull request #3253 from tsoybe/master
fix: wrong ttl issue#2925
pull/3279/head
neil
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
dnsapi/dns_desec.sh
|
|
@ -61,7 +61,7 @@ dns_desec_add() { |
|
|
|
fi |
|
|
|
_debug txtvalues "$txtvalues" |
|
|
|
_info "Adding record" |
|
|
|
body="[{\"subname\":\"$_sub_domain\", \"type\":\"TXT\", \"records\":[$txtvalues], \"ttl\":60}]" |
|
|
|
body="[{\"subname\":\"$_sub_domain\", \"type\":\"TXT\", \"records\":[$txtvalues], \"ttl\":3600}]" |
|
|
|
|
|
|
|
if _desec_rest PUT "$REST_API/$DEDYN_NAME/rrsets/" "$body"; then |
|
|
|
if _contains "$response" "$txtvalue"; then |
|
|
@ -130,7 +130,7 @@ dns_desec_rm() { |
|
|
|
_debug txtvalues "$txtvalues" |
|
|
|
|
|
|
|
_info "Deleting record" |
|
|
|
body="[{\"subname\":\"$_sub_domain\", \"type\":\"TXT\", \"records\":[$txtvalues], \"ttl\":60}]" |
|
|
|
body="[{\"subname\":\"$_sub_domain\", \"type\":\"TXT\", \"records\":[$txtvalues], \"ttl\":3600}]" |
|
|
|
_desec_rest PUT "$REST_API/$DEDYN_NAME/rrsets/" "$body" |
|
|
|
if [ "$_code" = "200" ]; then |
|
|
|
_info "Deleted, OK" |
|
|
|