... | ... | @@ -32,11 +32,11 @@ This will generate `unbound.conf` and `kresd.conf` files in local files. |
|
|
|
|
|
Go to `examples/` directory.
|
|
|
|
|
|
Run `genconf.py` script with path to Json file as parameter
|
|
|
Run `generate_conf.py` script with path to Json file as parameter
|
|
|
```bash
|
|
|
(jetconf-resolver) $ python genconf.py example-data.json
|
|
|
(jetconf-resolver) $ python generate_conf.py example-data.json
|
|
|
```
|
|
|
If generated `unbound.conf` is converted to JSON. The result do not have to be the same as input JSON for`genconf.py` script because the configuration designed to [Knot Resolver](https://gitlab.labs.nic.cz/jetconf/jetconf-resolver/raw/master/yang-modules/cznic-resolver-knot@2018-07-27.yang) is ignored for Unbound.
|
|
|
If generated `unbound.conf` is converted to JSON. The result do not have to be the same as input JSON for`generate_conf.py` script because the configuration designed to [Knot Resolver](https://gitlab.labs.nic.cz/jetconf/resolvers-yang/raw/master/yang-modules/cznic-resolver-knot@2018-07-27.yang) is ignored for Unbound.
|
|
|
|
|
|
## Convert unbound.conf to Json file
|
|
|
This will convert `unbound.conf` to valid `unb-data.json`
|
... | ... | @@ -45,10 +45,10 @@ Go to `examples/` directory. |
|
|
|
|
|
As example configuration file can be used `../complete/unbound.conf` after running `genconf.py`
|
|
|
|
|
|
Run `convert.py` with path to `unbound.conf` as parameter.
|
|
|
Run `unb_to_conf.py` with path to `unbound.conf` as parameter.
|
|
|
```bash
|
|
|
(jetconf-resolver) $ python convert.py ../complete/unbound.conf
|
|
|
(jetconf-resolver) $ python unb_to_json.py unbound.conf
|
|
|
```
|
|
|
No output means that the JSON data in `unb-data.json` is valid.
|
|
|
|
|
|
If you generate another `unbound2.conf` from this Json, it should be equal to `unbound.conf` which was used as input parameter to `convert.py` script. |
|
|
\ No newline at end of file |
|
|
If you generate another `unbound.conf` from this Json, it should be equal to `unbound.conf` which was used as input parameter to `unb_to_json.py` script. |
|
|
\ No newline at end of file |