Sign inSign up

cube00/bind9

By cube00

•Updated about 1 year ago

Dockerize BIND DNS server with webmin for DNS administration. An Debian based bind9 & webmin image

Image
Networking
0

289

cube00/bind9 repository overview

This is a fork of ChrisP-Git⁠⁠ bind images.

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.

⁠Installation

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

⁠Quickstart

Docker Run:

docker run --name bind -d --restart=always \
  --publish 53:53/tcp --publish 53:53/udp --publish 10000:10000/tcp \
  --volume /srv/docker/bind:/data \
  cube00/bind:9:v2

OR

Docker Compose:

version "3.8"
services:
    bind:
        container_name: bind9
        hostname: bind9
        network_mode: bridge
        image: cube00/bind9:v2
        restart: unless-stopped
        ports:
            - "53:53/tcp"
            - "53:53/udp"
            - 10000:10000/tcp
        volumes:
            - /path/to/bind/data:/data
        environment:
            - WEBMIN_ENABLED=true
            - WEBMIN_INIT_SSL_ENABLED=false
            - WEBMIN_INIT_REFERERS=webmin1.domain.com webmin2.domain.com
            - WEBMIN_INIT_REDIRECT_PORT=10000
            - ROOT_PASSWORD=password
            - TZ=Asia/Jakarta

When the container is started the Webmin⁠⁠ service is also started and is accessible from the web browser at (https://serverIP: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 if not required.

⁠Parameters

ParameterFunction
-p "53:53/tcp" -p "53:53/udpDNS TCP/UDP port (you can also configure it as serverip:53:53 without the quotes)
-p 10000:10000/tcpWebmin port
-e WEBMIN_ENABLED=trueEnable/Disable Webmin (true/false)
-e ROOT_PASSWORD=passwordSet a password for Webmin root. Parameter has no effect when the launch of Webmin is disabled.
-e WEBMIN_INIT_SSL_ENABLED=falseEnable/Disable Webmin SSL (true/false). If Webmin should be served via SSL or not. Defaults to true.
-e WEBMIN_INIT_REFERERSEnable/Disable Webmin SSL (true/false). 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), for multuiple entires use a space delimeter
-e WEBMIN_INIT_REDIRECT_PORTThe port Webmin is served from. Set this to your reverse proxy port, such as 443. Defaults to 10000.
-e BIND_EXTRA_FLAGSDefault set to -g
-v /dataMount data directory for persistent config
-e TZ=Asia/JakartaSpecify a timezone to use e.g. Asia/Jakarta

Tag summary

Content type

Image

Digest

sha256:537c2b36c…

Size

184 MB

Last updated

about 1 year ago

docker pull cube00/bind9:v3