From 56af0e2c52c2dd65efab4c841800070531f4a414 Mon Sep 17 00:00:00 2001 From: Gustavo Arnosti Neves Date: Thu, 6 Sep 2018 07:03:17 -0300 Subject: [PATCH] Fix removal of DNS record after completion Changes undocumented API function to `dns/records/$_domain_name`. Since it checks for root right before asking for the ID, there is not need to check again and the `$_domain_name` should be accurate. Just changed the function name and it worked for me (no need to patch sed), but not sure why the other patch wants to change the sed call. ---------------------------------------- API Reference: https://www.dynu.com/en-US/Resources/API/Documentation#DNSRecords --- dnsapi/dns_dynu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnsapi/dns_dynu.sh b/dnsapi/dns_dynu.sh index 17a1cdb0..ab3f54b0 100644 --- a/dnsapi/dns_dynu.sh +++ b/dnsapi/dns_dynu.sh @@ -152,7 +152,7 @@ _get_recordid() { fulldomain=$1 txtvalue=$2 - if ! _dynu_rest GET "dns/record/get?hostname=$fulldomain&rrtype=TXT"; then + if ! _dynu_rest GET "dns/records/$_domain_name"; then return 1 fi