Gandi LiveDNS Updater - commnand line tool to keep your dynamic ip up to date
Project description
GIU
Gandi LiveDNS Updater - commnand line tool to keep your dynamic ip up to date.
Prequisites
- A valid key fro Gandi LiveDNS API. Use https://account.gandi.net/en/users/USER/security
(
USER
is your Gandi user account). - Python 3.
Installation
The recommended way to install this package is through pip.
pip install --user giu
Usage
To use giu
you need to create a config.toml
file to hold the minimal set of
configurations.
[api]
url = 'https://dns.api.gandi.net/v5/livedns'
key = 'YOUR_KEY'
[dns]
domain = 'example.com'
records = [
{'type' = 'A', 'name' = '@', 'ttl' = 18000},
]
[resolver]
providers = [
'http://ipecho.net/plain',
'https://ifconfig.me/ip',
'http://www.mon-ip.fr'
]
One shot
In this example the config file was created on $HOME/.giu/example.com.toml
.
giu sync --conf $HOME/.giu/example.com.toml
Cronjob
In this example the config file was created on $HOME/.giu/example.com.toml
.
$ crontab -e
* */2 * * * giu sync --conf $HOME/.giu/example.com.toml
Improvements
Some improvements that I have ff the top of my head:
put
command to create entries like CNAMES and so on.delete
command to delete entriesbackup
command to do backups- Docker Image to run giu with docker compose or as a Cronjob on Kubernetes.
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
giu-0.2.0.tar.gz
(6.9 kB
view details)
Built Distribution
giu-0.2.0-py3-none-any.whl
(7.5 kB
view details)
File details
Details for the file giu-0.2.0.tar.gz
.
File metadata
- Download URL: giu-0.2.0.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.8.0-33-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc895c3656d33adfde7149894f9cc2bdb07ec42abe20dfd014f1c509b09ba343 |
|
MD5 | 391b5ab1d3c4f973c394f4cf1099520d |
|
BLAKE2b-256 | b7a6e0e22fc2fd61e53f7373579717873b7ee0ecb5b0d2c2915bfb6331da6ca2 |
File details
Details for the file giu-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: giu-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.8.0-33-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d9edaf13d2392778df5b6b0a71109498a40e418536b7d8cf4a6d399f2136852 |
|
MD5 | 97fefb928d56f5872e0572e5369d1cf1 |
|
BLAKE2b-256 | d9cffd762aee75c958606c89425669da68bcb01899260ee3d1a7d3e3f2ab90bd |