No description
Find a file
2020-06-16 18:51:25 +02:00
re2oapi@ffaed92103 First basic functionnal version 2020-04-03 15:08:38 +02:00
.gitignore TTLs, requirements and re2O validation. 2020-04-03 16:57:51 +02:00
.gitmodules First basic functionnal version 2020-04-03 15:08:38 +02:00
config.example.toml First basic functionnal version 2020-04-03 15:08:38 +02:00
gandi.py TTLs, requirements and re2O validation. 2020-04-03 16:57:51 +02:00
logging.conf TTLs, requirements and re2O validation. 2020-04-03 16:57:51 +02:00
main.py Add client hostname 2020-06-16 18:51:25 +02:00
Pipfile No python version requirement 2020-06-09 18:14:08 +02:00
Pipfile.lock No python version requirement 2020-06-09 18:14:08 +02:00
README.md TTLs, requirements and re2O validation. 2020-04-03 16:57:51 +02:00
requirements.txt TTLs, requirements and re2O validation. 2020-04-03 16:57:51 +02:00

Re2o Gandi DNS

This is a small script that can be the interface between Re2o and Gandi for the DNS. So far it manages:

  • A records
  • AAAA records
  • CNAME records
  • Origin record

more can be added but I did not need them.

The script keeps track of the records it can manage in toml files in last_updates, so that it won't delete records that you add manually in Gandi interface if they don't exist in Re2o.

## Usage

Usage: main.py [OPTIONS]

Options:
  --config-dir TEXT       Configuration directory.
  --dry-run / --complete  Performs a dry run.
  --keep / --update       Update service status on Re2o. Won't update if it is
                          a dry-run.

  --help                  Show this message and exit.

Installation

Clone the repository (e.g. in /usr/local/dns) the install the requirements (with pip for example : pip install -r requirements.txt) and it's done.

You can also setup a cron to run this on a regular basis.