Updating Dynamic DNS with Cloudflare API

1 · Christian Cleberg · March 23, 2022, midnight
DDNS: Dynamic DNS If you're hosting a service from a location with dynamic DNS (where your IP may change at any time), you must have a solution to update the DNS so that you can access your service even when the IP of the server changes. The process below uses the Cloudflare API to update DNS A records with the server's current IP. If you use another DNS provider, you will have to find a way to update your DNS (or find a way to get a static IP). First, install jq since we will use it in the next...