mikrotik-cloudflare-dns
mikrotik-cloudflare-dns copied to clipboard
Update fails, missing required parameters
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'.)