aivus/bind
This image is DEPRECATED. Consider using https://hub.docker.com/r/sameersbn/bind instead.
450
This image is deprecated and not supported anymore. Consider using sameersbn/bind (Github) instead.
Dockerfile
to create a Docker container image for BIND DNS server.
BIND is open source software that implements the Domain Name System (DNS) protocols for the Internet. It is a reference implementation of those protocols, but it is also production-grade software, suitable for use in high-volume and high-reliability applications.
If you find this image useful here's how you can help:
Before reporting your issue please try updating Docker to the latest version and check if it resolves the issue. Refer to the Docker installation guide for instructions.
SELinux users should try disabling SELinux using the command setenforce 0
to see if it resolves the issue.
If the above recommendations do not help then report your issue along with the following information:
docker version
and docker info
commandsdocker run
command or docker-compose.yml
used to start the image. Mask out the sensitive bits.Automated builds of the image are available on Dockerhub and is the recommended method of installation.
docker pull aivus/bind:9.11.5-20200515
Alternatively you can build the image yourself.
docker build -t aivus/bind github.com/aivus/docker-bind
Start BIND using:
docker run --name bind -d --restart=always \
--publish 53:53/tcp --publish 53:53/udp \
--volume /srv/docker/bind:/data \
aivus/bind:9.11.5-20200515
Alternatively, you can use the sample docker-compose.yml file to start the container using Docker Compose
You can customize the launch command of BIND server by specifying arguments to named
on the docker run
command. For example the following command prints the help menu of named
command:
docker run --name bind -it --rm \
--publish 53:53/tcp --publish 53:53/udp \
--volume /srv/docker/bind:/data \
aivus/bind:9.11.5-20200515 -h
For the BIND to preserve its state across container shutdown and startup you should mount a volume at /data
.
The Quickstart command already mounts a volume for persistence.
SELinux users should update the security context of the host mountpoint so that it plays nicely with Docker:
mkdir -p /srv/docker/bind
chcon -Rt svirt_sandbox_file_t /srv/docker/bind
To upgrade to newer releases:
docker pull aivus/bind:9.11.5-20200515
docker stop bind
docker rm -v bind
docker run --name bind -d \
[OPTIONS] \
aivus/bind:9.11.5-20200515
For debugging and maintenance purposes you may want access the containers shell. If you are using Docker version 1.3.0
or higher you can access a running containers shell by starting bash
using docker exec
:
docker exec -it bind bash
docker pull aivus/bind