@@ -6,10 +6,24 @@ This service uses Re2o API to generate DNS zone files
## Requirements
* python3
* knot
* knot (only if using knot)
* requirements in https://gitlab.federez.net/re2o/re2oapi
## 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 :
| `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.
parser.add_argument('-f','--force','--forced',help="Forcer la régénaration des fichiers de zone.",action='store_true')
parser.add_argument('-k','--keep',help="Ne pas changer le statut du service.",action='store_true')
parser.add_argument('-p','--processes',help="Regénérer en utilisant n processus en parallèle (par défaut ne pas parallèliser).",metavar='n',nargs=1,type=int,default=[0])
parser.add_argument('-n','--no-reload',help="Ne pas recharger les zones dans knot.",action='store_true')
ifuse_knot:
parser.add_argument('-n','--no-reload',help="Ne pas recharger les zones dans knot.",action='store_true')
parser.add_argument('-v','--verbose',help="Afficher des informations de debug.",action='store_true')