# 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](./src/update_dns.py) somewhere 2. Allow script execution: ```bash $ chmod u+x ./update_dns.py ``` 3. Create a configuration file (see [the example](./example_config.yml)) 4. Launch the script: ```bash $ ./update_dns.py /path/to/config.yml ``` 5. Install the systemd [service](./systemd/update_dns.service) and [timer](./systemd/update_dns.timer) for automatic DNS update. ```bash $ 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 ```