Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

CloudFlare Dynamic DNS updater

Project description

# Cloudflare DNS client

Use the Cloudflare API to keep records up to date with your current IP address(es).

You could run it from your crontab every five minutes or so.

This will add/update an A/AAAA record for domain.tld with your external IP address: `*/5 *  * * *  cf-ddns.py --name domain.tld`

Make sure CF_EMAIL and CF_TOKEN environment variables are set.

Execute cf-ddns.py -h for list of arguments.

If you want to use Sentry for alerts, set the DSN in the SENTRY_DSN environment variable.

## Requirements: - A Cloudflare account and domain name. - Python 3.4 or newer - Requests (https://github.com/kennethreitz/requests) - Optional: Raven (for Sentry alerting)

## Disclaimer: This software is provided as is. It should be safe, but don’t blame me if your computer blows up. It is tested on Ubuntu 16.10 with Python 3.5.2.

## Installation: `pip install --upgrade cf-ddns`

Optionally with Sentry alerting:

`pip install --upgrade cf-ddns[sentry]`

Twitter: https://twitter.com/maedox/

Project details


Release history Release notifications

This version
History Node

1.0.3

History Node

1.0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
cf_ddns-1.0.3-py3-none-any.whl (7.2 kB) Copy SHA256 hash SHA256 Wheel py3 Jan 3, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page