Fix AzureV6 DynDNS client

`AAAARecords` in the Azure DNS API is case sensitive

Documentation: https://docs.microsoft.com/en-us/rest/api/dns/recordsets/createorupdate
(cherry picked from commit 1ca156ea08)
This commit is contained in:
Tyler Szabo 2019-04-17 20:09:47 -07:00 committed by jim-p
parent 5beb11e61e
commit 2fb3b9bd39

View File

@ -1100,7 +1100,7 @@
// Update the DNS record
if ($this->_useIPv6) {
$url = "https://management.azure.com" . $resourceid . "/AAAA/" . $hostname . "?api-version=2017-09-01";
$body = '{"properties":{"TTL":"' . $newttl . '", "AaaaRecords":[{"ipv6Address":"' . $newip . '"}]}}';
$body = '{"properties":{"TTL":"' . $newttl . '", "AAAARecords":[{"ipv6Address":"' . $newip . '"}]}}';
} else {
$url = "https://management.azure.com" . $resourceid . "/A/" . $hostname . "?api-version=2017-09-01";
$body = '{"properties":{"TTL":"' . $newttl . '", "ARecords":[{"ipv4Address":"' . $newip . '"}]}}';