A simple Bash script for updating DNS records in Cloudflare and DigitalOcean.
- Clone the repository somewhere accessible:
git clone git@github.com:JohnMaguire/dynamic-dns.git /opt/dynamic-dns/
- Copy the example .env file into place:
cp /opt/dynamic-dns/examples/env /opt/dynamic-dns/.env
- Copy the example domain file into place:
cp /opt/dynamic-dns/examples/domain.example.com /opt/dynamic-dns/domains.d/domain.example.com
- Edit both files from the above steps with your desired values.
- Finally, configure a cron job or systemd unit to periodically call the script. (See examples directory for systemd service and timer.)