Hello,
At the moment I have a series of pis + VPNs that use the cloudflare API for setting DNS records. These devices, do the following:
- Query icanhazip (and therefore cloudflare) to get public ipv4 and public ipv6 addresses
- Send a DNS update to cloudflare to update their record to point to their corresponding ip.
By doing the above, I can ensure my piholes are publically accessible from dynamic residential IPs.
I imagine I am not the only person perhaps using cloudflare for this purpose.
My main question is that could the API just be simplified here? Instead of doing 2 requests above to cloudflare, would be nicer to just send 1 and let cloudflare figure out my public IP from my request.