No description
Find a file
2022-03-14 21:24:48 +01:00
gandyndns.py Rewrote the script into object oriented paradigm 2022-03-14 21:24:48 +01:00
README.md Update README.md 2022-03-14 18:51:22 +01:00

gandyndns

The purpose of this script is to change on execution the IP address of a Gandi.net DNS record (default is to change the DNS @.example.com A record) and replacing the IP with the public IP of the machine on which the code is executed. The goal is to provide a dynamic change of DNS record like DynDNS, DuckDNS, etc for Gandi.net domains.

This script was inspired by matt1's gandi-ddns script : matt1/gandi-ddns

Usage

The script was designed to be run using a cron task :

sudo crontab -e

And then to execute every 15 minutes write in the crontab :

 */15 * * * * python /opt/services/scripts/gandyndns.py