Project to pull client IP's from unifi controller and create/remove/update cloudflare dns records. This is a useful utility when you want your internal dns records to be publicly resolvable. This can help accessing internal resources when on corporate VPN that takes over DNS.
Builds of this utility are published to Docker Hub. The intention is to run this on a cron schedule at whatever period you desire your DNS to update.
docker run -it --rm --env-file environment.env -v <local state storage location>:/state msroest/unifi-cloudflare:latest
Due to limitations with the cloudflare terraform provider you will need to delete any existing cloudflare DNS records for records that will be created by this tool.