A project to build DNS zone files from Re2o data retrieved by using the API.
Find a file
Romain DEP. 6710dfde1b (template_srv) Let the user define the service part in full (as opposed to
adding it automatically)
    This is consistent with re2o/machines/models.py
2020-04-26 14:09:24 +02:00
re2oapi@ffaed92103 update api. 2019-10-13 17:12:15 +02:00
.gitignore Basic generataion of full DNS zone files 2018-06-23 21:01:00 +00:00
.gitmodules re2oapi de federez 2019-05-10 19:05:55 +02:00
config.ini.example Add parameters for tls and knot 2020-01-17 16:23:33 +01:00
knot.py [knot.py] Suppression imports inutiles 2018-12-29 13:51:27 +01:00
main.py (template_srv) Let the user define the service part in full (as opposed to 2020-04-26 14:09:24 +02:00
README.md Add parameters for tls and knot 2020-01-17 16:23:33 +01:00

Re2o - DNS

This service uses Re2o API to generate DNS zone files

Requirements

Scripts

  • main.py: Generates the zone files and reloads the zones
  • dnssec_generate.py: Generate the DS records for the zones in dnssec_domains.json and writes them to dnssec.json

Configuration file

The template of the configuration file is given in config.ini.example. You should copy it into config.ini and modify at least the first 3 paramters :

Parameter Default value Description
hostname re2o.example.net Hostname of your re2o instance
username my_api_username Username to access the api
password my_api_password Password to access the api
use_tls true Use TLS to connect to the api
use_knot false Use knot specific commands

For boolean parameters, according to https://docs.python.org/3/library/configparser.html, 'yes'/'no', 'on'/'off', 'true'/'false' and '1'/'0' are valid parameters.