Skip to content

m-schenker/gandi-ddns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

gandi-ddns

This is a minimal script that dynamically updates DNS A records for domains, and/or subdomains, that are hosted with the registrar Gandi.

Requirements

  1. python
  2. python-requests

Configuration

The script is controlled via a configuration file, /etc/gandi-ddns.cfg, that is to be written in an INI files manner. Attached you will find a sample configuration file. Just set the script to be executed in regular intervals, smaller than the shortest specified ttl, via a cron job or a systemd timer.

[domain.com]
apikey=<insert your Gandi API key>
aname=@
ttl=1800

[domain.com]
apikey=<insert your Gandi API key>
aname=www
ttl=900

[anotherdomain.fr]
apikey=<insert your Gandi API key>
aname=blog
ttl=3600

The script is verbose and will print to stout telling you what is wrong if an update operation failed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages