• Stars
    star
    913
  • Rank 50,033 (Top 1.0 %)
  • Language
    Shell
  • License
    MIT License
  • Created over 10 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Dockerize BIND DNS server with webmin for DNS administration

Circle CI Docker Repository on Quay.io

sameersbn/bind:9.16.1-20200524

Introduction

Dockerfile to create a Docker container image for BIND DNS server bundled with the Webmin interface.

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.

Contributing

If you find this image useful here's how you can help:

  • Send a pull request with your awesome features and bug fixes
  • Help users resolve their issues.
  • Support the development of this image with a donation

Issues

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:

  • Output of the docker version and docker info commands
  • The docker run command or docker-compose.yml used to start the image. Mask out the sensitive bits.
  • Please state if you are using Boot2Docker, VirtualBox, etc.

Getting started

Installation

Automated builds of the image are available on Dockerhub and is the recommended method of installation.

Note: Builds are also available on Quay.io

docker pull sameersbn/bind:9.16.1-20200524

Alternatively you can build the image yourself.

docker build -t sameersbn/bind github.com/sameersbn/docker-bind

Quickstart

Start BIND using:

docker run --name bind -d --restart=always \
  --publish 53:53/tcp --publish 53:53/udp --publish 10000:10000/tcp \
  --volume /srv/docker/bind:/data \
  sameersbn/bind:9.16.1-20200524

Alternatively, you can use the sample docker-compose.yml file to start the container using Docker Compose

When the container is started the Webmin service is also started and is accessible from the web browser at https://localhost:10000. Login to Webmin with the username root and password password. Specify --env ROOT_PASSWORD=secretpassword on the docker run command to set a password of your choosing.

The launch of Webmin can be disabled by adding --env WEBMIN_ENABLED=false to the docker run command. Note that the ROOT_PASSWORD parameter has no effect when the launch of Webmin is disabled.

Read the blog post Deploying a DNS Server using Docker for an example use case.

Command-line arguments

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 --publish 10000:10000/tcp \
  --volume /srv/docker/bind:/data \
  sameersbn/bind:9.16.1-20200524 -h

Persistence

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

Reverse Proxying

If you need to run Webmin behind a reverse-proxy such as Nginx, you can tweak the following environment variables:

  • WEBMIN_INIT_SSL_ENABLED: If Webmin should be served via SSL or not. Defaults to true. If you do the SSL termination at an earlier stage, set this to false.

  • WEBMIN_INIT_REDIRECT_PORT: The port Webmin is served from. Set this to your reverse proxy port, such as 443. Defaults to 10000.

  • WEBMIN_INIT_REFERERS: Sets the allowed referrers to Webmin. Set this to your domain name of the reverse proxy. Example: mywebmin.example.com. Defaults to empty (no referrer).

Maintenance

Upgrading

To upgrade to newer releases:

  1. Download the updated Docker image:
docker pull sameersbn/bind:9.16.1-20200524
  1. Stop the currently running image:
docker stop bind
  1. Remove the stopped container
docker rm -v bind
  1. Start the updated image
docker run -name bind -d \
  [OPTIONS] \
  sameersbn/bind:9.16.1-20200524

Shell Access

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

More Repositories

1

docker-gitlab

Dockerized GitLab
Shell
7,893
star
2

docker-redmine

Docker Image for Redmine
Shell
1,255
star
3

docker-postgresql

Dockerfile to build a PostgreSQL container image which can be linked to other containers.
Shell
1,050
star
4

docker-squid

Dockerfile to create a Docker container image for Squid proxy server
Shell
818
star
5

docker-browser-box

Dockerized google-chome and tor-browser with audio support via pulseaudio
Shell
574
star
6

docker-mysql

A Dockerfile that installs a mysql server
Shell
247
star
7

docker-apt-cacher-ng

Dockerfile to create a Docker container image for Apt-Cacher NG
Shell
210
star
8

docker-gitlab-ci

Dockerfile to build a GitLab CI container image.
Shell
199
star
9

docker-redis

Dockerfile to create a Docker container image for Redis.
Shell
156
star
10

docker-gitlab-ci-multi-runner

Shell
145
star
11

docker-skype

Dockerized skype with voice and video call support
Shell
139
star
12

docker-gitlab-ci-runner

Dockerfile to build a base GitLab CI Runner container image.
Shell
98
star
13

docker-openfire

Dockerfile to create a Docker container image for Openfire.
Shell
81
star
14

docker-nginx

A Dockerfile that installs nginx (from source) with nginx-rtmp module support (php5 support can be added using the sameersbn/php5-fpm image)
Shell
76
star
15

docker-wowza

Dockerfile to containerize Wowza Streaming Engine
Shell
64
star
16

docker-mongodb

Dockerfile to build a MongoDb container image which can be linked to other containers.
Shell
47
star
17

docker-invoiceplane

Dockerfile to create a Docker container image for InvoicePlane
Shell
45
star
18

docker-owncloud

Experimental owncloud image for docker
Shell
34
star
19

docker-ubuntu

My Ubuntu boilerplate image that forms the base for my docker containers.
Makefile
33
star
20

docker-nextcloud

Shell
31
star
21

docker-runner-gitlab

A CI runner for gitlab-ce built on top of the https://github.com/sameersbn/docker-gitlab-ci-runner
Shell
27
star
22

docker-memcached

Dockerfile to build a memcached container image which can be linked to other containers.
Dockerfile
27
star
23

docker-extras

Helper scripts for everyday docker use.
Shell
19
star
24

docker-akaunting

Docker for Akaunting
Shell
19
star
25

docker-ffmpeg

Base your docker image on this image if you need a bleeding egde version of fffmpeg.
Shell
17
star
26

docker-laboard

Docker file to build a Laboard image
Shell
10
star
27

docker-php-fpm

Dockerfile to build a php-fpm container.
Dockerfile
8
star
28

docker-nodejs

Dockerfile to build a nodejs+express image with nodemon
Shell
7
star
29

docker-rygel

Dockerfile to build a Rygel DLNA/uPNP server docker image.
Makefile
7
star
30

docker-skypeforlinux

Dockerized Skype for Linux (alpha)
Shell
6
star
31

docker-mysql2psql

Dockerfile that packages mysql2psql and py-mysql2pqsql tools.
Makefile
6
star
32

docker-debian

debian jessie baseimage that packs a couple of extra packages.
Makefile
2
star