gandi_livedns: use PUT instead of POST for creating DNS record
This commit is contained in:
parent
9fcdca66fa
commit
1a10f5b173
@ -36,7 +36,7 @@ dns_gandi_livedns_add() {
|
|||||||
_debug domain "$_domain"
|
_debug domain "$_domain"
|
||||||
_debug sub_domain "$_sub_domain"
|
_debug sub_domain "$_sub_domain"
|
||||||
|
|
||||||
_gandi_livedns_rest POST "domains/$_domain/records/$_sub_domain/TXT" "{\"rrset_ttl\": 300, \"rrset_values\":[\"$txtvalue\"]}"
|
_gandi_livedns_rest PUT "domains/$_domain/records/$_sub_domain/TXT" "{\"rrset_ttl\": 300, \"rrset_values\":[\"$txtvalue\"]}"
|
||||||
|
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user