A dynamic DNS client using Neodigit's API
Project description
Dynamic DNS with Neodigit's API
Cliente de DNS dinámico para dominios gestionados en Neodigit. Comprueba tu IP pública y actualiza automáticamente el registro A de tu subdominio.
Links
- GitHub: https://github.com/educollado/neodigit-dyndns
- PyPI: https://pypi.org/project/neodigit-dyndns/
- API Neodigit: https://developers.neodigit.net/
Instalación
Desde PyPI:
pip install neodigit-dyndns
Desde el código fuente con venv:
git clone https://github.com/educollado/neodigit-dyndns.git
cd neodigit-dyndns
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install -e .
Configuración
Crea un fichero YAML (por ejemplo config.yaml) con las siguientes claves:
token: TU_TOKEN_AQUI
my_domain: tudominio.com
my_subdomain: subdominio
Puedes obtener tu token en: https://panel.neodigit.net/api-consumers
Ejemplo: para actualizar home.midominio.com:
token: RgU3dNWT8P4pIq1QZ4UXXXXXXXXXXXXXXXX
my_domain: midominio.com
my_subdomain: home
Importante: no compartas ni subas este fichero a un repositorio público.
Uso
python -m neodigit_dyndns config.yaml
O si lo instalaste via pip:
neodigit-dyndns config.yaml
Automatización con cron
Para actualizar la IP cada 15 minutos, añade esta línea a tu crontab (crontab -e):
*/15 * * * * neodigit-dyndns /ruta/a/config.yaml >> /var/log/neodigit-dyndns.log 2>&1
Comportamiento
El cliente realiza las siguientes comprobaciones en cada ejecución:
- Verifica que el dominio esté registrado en Neodigit
- Obtiene la IP pública actual
- Si el subdominio no existe → lo crea
- Si el subdominio ya existe y la IP no ha cambiado → no hace nada
- Si la IP ha cambiado → actualiza el registro A
Licencia
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file neodigit_dyndns-0.3.3.tar.gz.
File metadata
- Download URL: neodigit_dyndns-0.3.3.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1811aa909ec73be7399ce31d4683b19c310b122e9d83b0a4ca2218b45d795f7
|
|
| MD5 |
968ce540468e16d9282671783ca6f3e8
|
|
| BLAKE2b-256 |
b96274777929b40e9e6da0bfded21a74598780cb895dadc1237e3b0733c5dea9
|
File details
Details for the file neodigit_dyndns-0.3.3-py3-none-any.whl.
File metadata
- Download URL: neodigit_dyndns-0.3.3-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
993608e3416d9cbbfc387e010327672e53d665469a22bfd04de4f30edf22d18e
|
|
| MD5 |
5c2be54c7dcd34f4b110602d7958abd1
|
|
| BLAKE2b-256 |
acde813adce8ef13340e86b0ea2d8bc6d921f8bfeb71838a8f2b71d56b95f01d
|