I have a dns domain config in CloudFlare. I set a map from the domain name to my IP address. The challenge here is that my IP address is not static ip, it could be updated frequently by network provider, So I want to create a service to check my external IP address, and verify whether it's same as the one I mapped to the domain. When there are different, we should call a cloudflare api to reset the map domain name and my IP address.
- use java gradle to generate the project
- use env file to store domain name and cloudflare profile token
- this function should execute scheduly.
- write log to record the cloudflare api call