NOTE: THIS SOFTWARE IS NOT PART OF CLOUDFLARE. IT ONLY USES THE PUBLIC API PROVIDED BY CLOUDFLARE FOR UPDATING PUBLIC IP OF THE HOST
- Initialize the Cloudflare API module
- Find Public IP.
- Check new ip with previous ip
- Continues if not matching. Otherwise wait for 60 second and goes to step 2.
- Find Zone ID of the Zone given.
- Find Record ID of "ddns.YOUR.DOMAIN" where YOUR.DOMAIN is the zone name.
- If no matching records are found in this zone, it create the record and store its record id.
- Updates this record and repeat step 2.
Dependancies:
- Python 2.7
- Pip
- Git
- Python Packages:
- Requests
- CloudFlare v4 API
sudo su
cd /opt
git clone https://github.com/nikhiljohn10/ddns-on-cloudflare.git
cd ddns-on-cloudflare
./setup.sh
Visit CloudFlare API for more details