Skip to content

Repository files navigation

BIND9 Docker Image

BIND9 in a Docker container, with configuration and zone files in a volume, and a configurable UID/GID for the BIND process.

Install

Docker Hub

Pull the latest image from Docker Hub:

docker pull wastrachan/bind

Github Container Registry

Or, pull from the GitHub Container Registry:

docker pull ghcr.io/wastrachan/bind

Build From Source

Clone this repository, and run make build to build an image:

git clone https://github.com/wastrachan/docker-bind.git
cd docker-bind
make build

Run

Docker

Run this image with the make run shortcut, or manually with docker run.

docker run -v "$(pwd)/config:/config" \
--name bind \
--rm \
-p 53:53/udp \
-e PUID=$(id -u) \
-e PGID=$(id -g) \
wastrachan/bind:latest

Configuration

Configuration files are stored in the /config volume. You may wish to mount this volume as a local directory, as shown in the examples above. /config/named.conf is the main configuration file for the application. Review the BIND man pages if you are unfamiliar with how to configure BIND.

User / Group Identifiers

If you'd like to override the UID and GID of the named process, you can do so with the environment variables PUID and PGID. This is helpful if other containers must access your configuration volume.

Services

ServicePort
DNS53

Volumes

VolumeDescription
/configConfiguration directory for BIND config and zone files.

License

The content of this project itself is licensed under the MIT License.

View license information for the software contained in this image.

About

BIND9 in a Docker container

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages