This is a restful API for the bind9 DNS server built using FastAPI and dnspython
702
Main project is here: https://gitlab.com/jaytuck/bind-rest-api Blog post intro: https://jaytuckey.name/2020/10/09/a-bind9-rest-api-tool-bind-rest-api/
There are a few things you will need to run this docker image:
config.env - a config environment file (https://gitlab.com/jaytuck/bind-rest-api/-/raw/master/example_config.env)apikeys.pass - a file to contain the list of api keys (https://gitlab.com/jaytuck/bind-rest-api/-/raw/master/example_apikeys.pass)You will want to customise the config.env and apikeys.pass files, then you can run the docker container something like this:
# Fish shell
~/g/bind-rest-api (master)> docker run --volume (realpath ./apikeys.pass):/app/apikeys.pass --volume (pwd)/logs:/app/logs --env-file config.env --publish 8000:8000 jaytuckey/bind-rest-api:latest
INFO: Started server process [1]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
or
# Bash shell
~/g/bind-rest-api (master)> docker run --volume $(realpath ./apikeys.pass):/app/apikeys.pass --volume $(pwd)/logs:/app/logs --env-file config.env --publish 8000:8000 jaytuckey/bind-rest-api:latest
INFO: Started server process [1]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
Note the important volume mounts:
/app/logs - this is where the audit and debug log files end up by default/app/apikeys.pass - this is the customised apikeys.pass fileContent type
Image
Digest
sha256:4648ae78c…
Size
411.9 MB
Last updated
over 2 years ago
docker pull jaytuckey/bind-rest-api