Skip to content

Dockerized Bind DNS Server


This docker container is for running the BIND9 DNS Server from within a container environment. Usage of the Alpine Linux image for the base was chosen to limit container size. Inclusive of bind9, supervisord is the entry point which starts bind9. As supervisor daemon is used, a health check has been setup and automagically runs and if any service fails, the health check will adjust accordingly.

TL;DR

docker pull nofusscomputing/bind:latest for stable branch or docker pull nofusscomputing/bind:dev for head branch.

Configuration

All Configuration for Bind is located in directory /etc/bind/conf.d when launching this container it's recommended that this path be a volume and you place your own config files there. Without doing so the container will start a DNS server that will be of no use.

Info

Bind9 Documentation can be found at https://bind9.readthedocs.io/en/v9.18.19/reference.html

Running the container

To quickly setup a container the following docker-compose.yaml file could be used.

docker-compose.yaml
services:

  bind:
    image: nofusscomputing/docker-bind:dev
    container_name : bind
    hostname: bind
    ports:
      - "53:53"
    volumes:
      - data_bind9:/etc/bind/conf.d
      - logs_bind9:/var/logs
    environment:
      - TIMEZONE=UTC
    restart: always
    networks:
      - default
      - ingress


volumes:
  data_bind9:
  logs_bind9:


networks:
  default:
    external: no
  ingress:
    external: yes

About:

This page forms part of our Project Docker Bind.

Page Metadata
Version: ToDo: place files short git commit here
Date Created: 2023-11-12
Date Edited: 2023-11-12

Contribution:

Would You like to contribute to our Docker Bind project? You can assist in the following ways:

 

ToDo: Add the page list of contributors