/Gandi-Dynamic-Live-DNS

Automatic updater for Gandi's new LiveDNS service

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Gandi Dynamic Live DNS

Dynamically update an A record on Gandi's LiveDNS system to reflect the current public IP address where this script is running.

Usage

  1. pip install poetry
  2. python -m poetry install
  3. Add the correct values into .env.example and rename it to .env
  4. Add to your crontab to run periodically

For Example:

*/15 * * * * python -m poetry run python /path/to/script/livedns.py >/dev/null 2>&1

if you hate poetry then the only deps you need are:

  • requests
  • python-dotenv

Env File Usage

The domain must be the root (i.e. what you purchase from Gandi), any additional sub-records should be added in to the record portion. For example, the current .env.example file would be editing dynamic.test.com.