From e783086578054f39a953a30984c7f7c5c4093feb Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Wed, 1 Nov 2023 02:39:12 -0400 Subject: [PATCH] Fixed API call for Vultr --- src/agents.d/update-dns-vultr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agents.d/update-dns-vultr b/src/agents.d/update-dns-vultr index 7b782a4..74584f0 100755 --- a/src/agents.d/update-dns-vultr +++ b/src/agents.d/update-dns-vultr @@ -103,7 +103,7 @@ if _update_dns_vultr_check_domain "$DIP_DOMAIN"; then -X PATCH \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $agent_update_dns_vultr_token" \ - -d '{"name":"A", "data": "'$DIP_CUR_IP'", "ttl": 300, "priority": 0}' \ + -d '{"data": "'$DIP_CUR_IP'"}' \ "https://api.vultr.com/v2/domains/${DIP_DOMAIN}/records/${DIP_RECORD_ID}" > /dev/null; else logerr "WARN: No A record exists for $DIP_RECORD" @@ -119,7 +119,7 @@ if _update_dns_vultr_check_domain "$DIP_DOMAIN"; then -X PATCH \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $agent_update_dns_vultr_token" \ - -d '{"name":"AAAA", "data": "'$DIP_CUR_IP'", "ttl": 300, "priority": 0}' \ + -d '{"data": "'$DIP_CUR_IP'"}' \ "https://api.vultr.com/v2/domains/${DIP_DOMAIN}/records/${DIP_RECORD_ID}" > /dev/null; else logerr "WARN: No AAAA record exists for $DIP_RECORD"