Automated Cloudflare DNS updates for Dynamic IPs.
simple-dns is a Node.js re-write of DDNS-Cloudflare.
- Node.js (tested on
v14.5.0
)
$ npm install
- CF_API_TOKEN - Cloudflare API key required for updating Cloudflare DNS
- ROOT_DOMAIN - Root domain name
- DDNS_DOMAIN - Domain name to be updated when IP address changes
# Example .env file should look like this
CF_API_TOKEN="xxxx-xxxx-xxxx"
ROOT_DOMAIN="domain.com"
DDNS_DOMAIN="dynamicdns.domain.com"
# Example crontab to ensure core.js is run every minute
# with output logs stored in simple-ddns.log
* * * * * /path/to/nodejs /path/to/core.js >> /any/path/simple-ddns.log
Read this for more info about cron.
- Fixes an issue where DNS records would not update domain specified in .env file
- Fixes an issue where envrionment variables were not set if script was run as a cron job
- Initial release of simple-ddns
Want to contribute to this project? Simply open an issue and send in a PR! 😃