Google CLOUD DNS

Hello,

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 :

/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

I need to switch to something like that:

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"
      ]
    }
  ]
}

however I have no clues to achieve that with the /fetch tool, I suspect we cannot use PATCH (like GET/PUT/POST)

Any suggestion of how to solve my problem?
Does anyone already hit that same problem?

Thanks for reading.

Nope, it’s not there:

[sob@CHR4] > /tool/fetch http-method=
delete  get  post  put

Nope they didn’t put that method (They, MT Developers) which sucks.
http://forum.mikrotik.com/t/patch-request-with-fetch/130322/1 here are complains about it :slight_smile: