Community discussions

MikroTik App
 
Sephy
just joined
Topic Author
Posts: 1
Joined: Thu Nov 07, 2019 10:57 am

Google CLOUD DNS

Mon Jan 03, 2022 6:36 pm

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.
 
Sob
Forum Guru
Forum Guru
Posts: 9119
Joined: Mon Apr 20, 2009 9:11 pm

Re: Google CLOUD DNS

Thu Jan 06, 2022 6:13 pm

Nope, it's not there:
[sob@CHR4] > /tool/fetch http-method=
delete  get  post  put
 
User avatar
eset
Member Candidate
Member Candidate
Posts: 108
Joined: Tue Dec 15, 2015 5:15 pm
Contact:

Re: Google CLOUD DNS

Mon Jan 10, 2022 12:32 am

Nope they didn't put that method (They, MT Developers) which sucks.
viewtopic.php?t=148677 here are complains about it :)

Who is online

Users browsing this forum: No registered users and 28 guests