mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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:
parent
5beb11e61e
commit
2fb3b9bd39
@ -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 . '"}]}}';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user