A simple console application that updates cloudflare A record with a new external IP.
Currently used as a simple "ddns" solution for VPN access.
- Install dependencies
$ composer install
- Configure environment with .env
$ cp .env.example .env
$ vim .env
You're going to need Cloudflare API key, API email and Zone ID
- Run the command
$ php ddns update
- Setup cron job
*/15 * * * * php /path/to/project/src/boostrap.php ddns:update-a-record