Skip to content

pieter-groeneweg/cloudflare-ddns-update

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cloudflare-ddns-update

Update dynamic ip on (sub) domains using Cloudflare DNS

Do you have your own server stashed in your closet at home? You want it to be accessible from the outside all the time? You don't have a static IP? There is no need to turn to (paid) ddns services.

Find your public dynamic IP (ipify.org). Get yourself an account on cloudflare and setup your DNS with your IP address.

Setup an environment running PHP with curl enabled. Copy the files and complete the config.php with your login, key and (sub)domains. Setup a cron job that calls the index.php. The schedule depends on your own requirement.

That's it!

Now each time this updater runs, it checks your public ip, matches that with the one stored in stored.ip. If it does not match, it will update the stored.ip file and the DNS rules in cloudflare on the (sub)sdomains you specified in config.php.

About

Update dynamic ip on (sub) domains using Cloudflare DNS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published