A DDNS client written in python that updates the A record on Cloudflare with the current IP of this device.
Project description
Python-DDNS
This is program written in python that acts as a DDNS client, currently just for Cloudflare.
Works on python3 and up.
I plan on making it a ppa to have it easier to update. Replaced with pypi
Git Install
git clone https://github.com/jwhite1st/python-ddns
cd python-ddns/
pip install -r requirements
# Modify config.conf with the require fields.
# To test configuration
python3 python-ddns.py
# Edit crontab to run script
crontab -e
# Add
0 * * * * /usr/bin/python3 $PWD/python-ddns.py >/dev/null 2>&1 #Updates every hour.
Python Install
There is a package available on pypi if you would rather install it that way.
pip install python-ddns
#Modify the config file. To find where it is install use pip show -f python-ddns
# Edit crontab to run script
crontab -e
# Add
0 * * * * /usr/bin/python-ddns >/dev/null 2>&1 #Updates every hour.
TODO
- Easier config editing
- Better service functionality
- Other DNS systems supported
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Python DDNS-1.1.tar.gz
(3.9 kB
view hashes)
Built Distribution
Python_DDNS-1.1-py3-none-any.whl
(17.3 kB
view hashes)
Close
Hashes for Python_DDNS-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42843ec5ffc927f7f26e199b332bf0bcd75d4b2f47b41ef1310c392717125ea0 |
|
MD5 | 94a07c7132485a2d2d19827f29d6ea84 |
|
BLAKE2b-256 | 84780bd28bfb356726fc41e1ff995d2e38a2a85c87b57a2cb010aefa3626405c |