You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
n0m1s 9d823b8655 updated script for python 3 years ago
src updated script for python 3 years ago
systemd updated script for python 3 years ago
.gitignore updated script for python 3 years ago
README.md updated script for python 3 years ago
example_config.yml updated script for python 3 years ago

README.md

Gandi-dyndns

A simple script to update Gandi DNS records.

Requirements

You will need the following python packages:

  • pyyaml, to parse the configuration file
  • requests, to perform the DNS record change

Getting started

  1. Copy the script somewhere
  2. Allow script execution:
$ chmod u+x ./update_dns.py
  1. Create a configuration file (see the example)
  2. Launch the script:
$ ./update_dns.py /path/to/config.yml
  1. Install the systemd service and timer for automatic DNS update.
$ vim ./systemd/update_dns.service # update parameters, config file, etc.
$ vim ./systemd/update_dns.timer   # update interval between DNS updates, if needed
$ sudo cp ./systemd/update_dns.* /etc/systemd/system # copy files to correct systemd directory
$ sudo systemctl daemon-reload              # reload daemon to find the timer
$ sudo systemctl enable update_dns.timer
$ sudo systemctl start update_dns.timer