Sign inSign up

dungeondragon/bind9

By dungeondragon

•Updated over 6 years ago

Use Bind9 as DNS server in Debian Buster-slim. Example files provided.

Image
0

314

dungeondragon/bind9 repository overview

⁠BIND9 based on Debian buster-slim

Provided is a Dockerfile with example files to build a Bind9 DNS server from debian buster-slim. You can download and build it yourself or you can download it via Docker Hub.

The example files are available in the Github repository.

⁠Usage

⁠Download
$docker.io pull dungeondragon/bind9
⁠Run
docker run -d \
  --name bind9 \
  -p 53:53 \
  -p 53:53/udp \
  dungeondragon/bind9

You may test if it works (outside the container) with the command dig. (DIG is a part of dnsutils package and will need to be installed if not exist.)

dig example.com @localhost
⁠Run and mount example files

It's recommended to mount certain files and folders to be able to edit the data easily. The following example will use bind mount to enable easy access to the configuration files supplied in the repository. Note that you have to replace /absolute/path/to with your own path.

docker run -d \
  --name bind9 \
  -p 53:53/udp \
  -p 53:53 \
  -v /absolute/path/to/named.conf.local:/etc/bind/named.conf.local \
  -v /absolute/path/to/zones:/etc/bind/zones \
  dungeondragon/bind9

Tag summary

Content type

Image

Digest

Size

68 MB

Last updated

over 6 years ago

docker pull dungeondragon/bind9