Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 534 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 534 Bytes

PHP DDNS

A simple console application that updates cloudflare A record with a new external IP.

Currently used as a simple "ddns" solution for VPN access.

Setup

  1. Install dependencies
$ composer install
  1. Configure environment with .env
$ cp .env.example .env
$ vim .env

You're going to need Cloudflare API key, API email and Zone ID

  1. Run the command
$ php ddns update
  1. Setup cron job
*/15 * * * * php /path/to/project/src/boostrap.php ddns:update-a-record