Updater for ipv64.net
Project description
How it is working
- The libary checks at every run the ipv64 name server (195.201.223.103) for the ip of the given domain.
- Next we check at ipv4.ipapi.de and ipv6.ipapi.de for your current IPv4 and IPv6.
- If the IPs are not the same (and not None -> e.g. the is no IPv6 oder IPv4), the libary runs a GET request at ipv64.net to update your IP in the A or/and AAAA record.
How to install
The libary is avilable at pypi.org
pip install ipv64
or
python -m pip install ipv64
How to run
Options:
-d (domain name) and -uh (update hash) is required
-w (discord webhook) is optional
INFO The Script did NOT run in a loop, you need to run it manually.
Windows
python -m ipv64 -d YOUR_DOMAIN.ipv64.net -uh YOUR_UPDATE_HASH -d DISCORD_WEBHOOK
Linux
/usr/bin/python3 -m ipv64 -d YOUR_DOMAIN.ipv64.net -uh YOUR_UPDATE_HASH -d DISCORD_WEBHOOK
run with cron
check every minute
* * * * * /usr/bin/python3 -m ipv64 -d YOUR_DOMAIN.ipv64.net -uh YOUR_UPDATE_HASH -d DISCORD_WEBHOOK
check every 30 seconds
* * * * * /usr/bin/python3 -m ipv64 -d YOUR_DOMAIN.ipv64.net -uh YOUR_UPDATE_HASH -d DISCORD_WEBHOOK
* * * * * sleep 30; /usr/bin/python3 -m ipv64 -d YOUR_DOMAIN.ipv64.net -uh YOUR_UPDATE_HASH -d DISCORD_WEBHOOK
Help
For the Help run:
python -m ipv64 -h
you will get:
Update the IP for a domain on ipv64.net
optional arguments:
-h, --help show this help message and exit
-d DOMAIN, --domain DOMAIN
The domain to update
-uh HASH, --hash HASH
Your DynDNS Updatehash
-w WEBHOOK, --webhook WEBHOOK
The webhook url for discord notifications```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ipv64-0.2.1.tar.gz
(3.9 kB
view hashes)