|
|
3 years ago | |
|---|---|---|
| src | 3 years ago | |
| systemd | 3 years ago | |
| .gitignore | 3 years ago | |
| README.md | 3 years ago | |
| example_config.yml | 3 years ago | |
A simple script to update Gandi DNS records.
You will need the following python packages:
$ chmod u+x ./update_dns.py
$ ./update_dns.py /path/to/config.yml
$ 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