Browse Source

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
pull/1830/head
Gustavo Arnosti Neves 7 years ago
committed by GitHub
parent
commit
56af0e2c52
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dnsapi/dns_dynu.sh

2
dnsapi/dns_dynu.sh

@ -152,7 +152,7 @@ _get_recordid() {
fulldomain=$1 fulldomain=$1
txtvalue=$2 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 return 1
fi fi

Loading…
Cancel
Save