mikrotik-cloudflare-dns icon indicating copy to clipboard operation
mikrotik-cloudflare-dns copied to clipboard

Update fails, missing required parameters

Open vladimir-mincev opened this issue 2 years ago • 0 comments

Documentation: https://api.cloudflare.com/#dns-records-for-a-zone-update-dns-record

In order to update DNS Record required parameters are:

  • type
  • name
  • content
  • ttl (missing in your script output)

Result: New A record was created with provided content.

Expected result: Updating existing A record with provided content.

Now, with two A records for same name, DNS is serving Round Robin (first IP, second IP, first IP, second IP...). Without access to CF Dashboard, user would be trying to figure out why DNS selectively works.

Proposed solution: Add "ttl" number to http-data (Must be number between 60 and 86400, or 1 for 'automatic'.)

vladimir-mincev avatar Jan 20 '23 14:01 vladimir-mincev