as a total noob with both scripting and using api's, is there a way one can have a script create a dns record at our cloudflare dns upon the routeros dhcp server handing out a lease?
i've used /tool/dns-update to do this locally, but i gather cloudflare only allows this via their api and doesn't support rfc 2136/3007
so the workflow i'm after is i connect client to network, dhcp server hands it an ip and updates cloudlfare dns, i refer to client via newly created dns record.
DNS record for what? For router itself or for devices on LAN side?
If you want to have current IP of a router synced to CLoudflare then set desired CNAME record in Cloudflare to your router's serialnumber.mikrotik .... that is handled by DDNS service. It is two step process with a short unsynchronized period but you do not need any additional tools.
hey bartosz, thanks for dropping by. i was actually referring to dynamically creating a dns record for clients on the lan, by the dhcp server, as it's handing out leases.
i have since made it work by tweaking the cloudflare provided script found here.