I was using a script on my RB4011 with last long-term version (long-term channel), to refresh my dynamic DNS with my new IP if changed.
Recently, I migrated from Google Domains to Google Cloud DNS.
The API is different. Instead of calling :
Code: Select all
/tool fetch http-header-field="User-Agent: Mikrotik" url="https://$GoogleDNSUsername:$GoogleDNSPassword@domains.google.com/nic/update?hostname=$hostName&myip=$currentIP" mode=https dst-path=GoogleDNS.txt
Code: Select all
PATCH https://dns.googleapis.com/dns/v1beta2/projects/my_project/managedZones/my_zone/changes
{
"additions": [
{
"name": "my.domain.",
"type": "AAAA",
"ttl": 60,
"rrdata": [
"newIPv6"
]
}
],
"deletions": [
{
"name": "my.domain.",
"type": "AAAA",
"ttl": 60,
"rrdata": [
"oldIPv6"
]
}
]
}
Any suggestion of how to solve my problem?
Does anyone already hit that same problem?
Thanks for reading.