Skip to content

A simple console application that updates cloudflare DNS record

Notifications You must be signed in to change notification settings

karlomikus/php-ddns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple console application that updates cloudflare DNS record

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages