This is an docker compose based on ubuntu/bind9 image with named.conf and example.com zone as example
-
Make sure you have already installed docker and docker-compose
-
Clone the repo:
$ git clone https://github.com/rbm0407/docker-compose-bind9- Run docker-compose
$ docker-compose up
- You can test if example.com is working with a dig request
$ dig example.com @127.0.0.1- Create the zone file on zones directory
- Add on the named.conf
- Restart the container with
docker-compose restart