Sign inSign up

internetsystemsconsortium/bind9

By internetsystemsconsortium

•Updated 6 days ago

Official ISC BIND 9 Docker, based on Alpine image. Maintained by ISC.org.

Image
Networking
111

1M+

internetsystemsconsortium/bind9 repository overview

BIND9 logo

Official ISC BIND 9 Docker repository. This free Docker is maintained on a best-effort basis.

You need to properly mount the following volumes:

  • /etc/bind - for configuration, your named.conf lives here
  • /var/cache/bind - this is the working directory, e.g. options { directory "/var/cache/bind"; };
  • /var/lib/bind - this is usually the place where the secondary zones are placed
  • /var/log - for logfiles

⁠Quickstart

⁠Recursive DNS Server

⁠BIND 9.18 (this version is now EOL and is not maintained)
docker run \
        --name=bind9 \
        --restart=always \
        --publish 53:53/udp \
        --publish 53:53/tcp \
        --publish 127.0.0.1:953:953/tcp \
        internetsystemsconsortium/bind9:9.18
⁠BIND 9.20 (current stable)
docker run \
        --name=bind9 \
        --restart=always \
        --publish 53:53/udp \
        --publish 53:53/tcp \
        --publish 127.0.0.1:953:953/tcp \
        internetsystemsconsortium/bind9:9.20

⁠Authoritative DNS Server

Here you will actually want to provide the desired configuration in /etc/bind/named.conf and primary zones, etc… (e.g. it’s not magic, you will have to configure it).

⁠BIND 9.18 (this version is now EOL and is not maintained)
docker run \
        --name=bind9 \
        --restart=always \
        --publish 53:53/udp \
        --publish 53:53/tcp \
        --publish 127.0.0.1:953:953/tcp \
        --volume /etc/bind \
        --volume /var/cache/bind \
        --volume /var/lib/bind \
        --volume /var/log \
        internetsystemsconsortium/bind9:9.18
⁠BIND 9.20 (current stable)
docker run \
        --name=bind9 \
        --restart=always \
        --publish 53:53/udp \
        --publish 53:53/tcp \
        --publish 127.0.0.1:953:953/tcp \
        --volume /etc/bind \
        --volume /var/cache/bind \
        --volume /var/lib/bind \
        --volume /var/log \
        internetsystemsconsortium/bind9:9.20

⁠Basic Configuration

⁠Recursive DNS server

The recursive DNS server doesn't need any configuration.

⁠Authoritative DNS server

options {
        directory "/var/cache/bind";
        listen-on { 127.0.0.1; };
        listen-on-v6 { ::1; };
        allow-recursion {
                none;
        };
        allow-transfer {
                none;
        };
        allow-update {
                none;
        };
};

zone "example.com." {
        type primary;
        file "/var/lib/bind/db.example.com";
        notify explicit;
};

⁠Support

  • For information about ISC, BIND and for purchasing professional technical support from ISC, see our website⁠. Development and maintenance of BIND9 is funded by your support contracts.
  • The bind-users mailing list (https://lists.isc.org/mailman/listinfo/bind-users⁠) is a resource for free community support. Please subscribe in order to post. We would love feedback about how this Docker image is working for you!

⁠Documentation

⁠Issues

  • To report a bug, navigate to our project repository⁠. Please try searching for your issue first in case someone else has already logged it.

⁠License

BIND9 is licensed under the MPL2.0 license⁠.

Tag summary

Content type

Image

Digest

sha256:071465f88…

Size

19.9 MB

Last updated

6 days ago

docker pull internetsystemsconsortium/bind9:9.20