Commnand line tool to interact with Gandi LiveDNS
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/api/v5'
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.1.0.tar.gz
(6.7 kB
view details)
Built Distribution
giu-0.1.0-py3-none-any.whl
(7.3 kB
view details)
File details
Details for the file giu-0.1.0.tar.gz
.
File metadata
- Download URL: giu-0.1.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.9 CPython/3.7.7 Darwin/19.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ea44719a96e8ed7e470d5699aa46e2681f0a11c198944308eafc67d1c352968 |
|
MD5 | 9f20b6197c7b0695c7a7b77dabae9995 |
|
BLAKE2b-256 | 8962cc6a29f11f4edea38aefa976f5175f4a26246ddb1da00d0364a0738c01ec |
File details
Details for the file giu-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: giu-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.9 CPython/3.7.7 Darwin/19.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 130975e59b69f6309153fe31a72d9963ffcd90454af5a8bad5623eda415c4854 |
|
MD5 | 26faea75784d0e05c1fac21a4801a69e |
|
BLAKE2b-256 | c75baa7322658734275b1570c0a7a8fb7caf0d4f221a5f6d60ad88ef5857741c |