Sign inSign up

wachira90/bind9

By wachira90

Updated almost 4 years ago

DNS BIND9

Image
0

114

wachira90/bind9 repository overview

Quickstart DNS

run command

docker run --name=bind9 --restart=always \
        --publish 53:53/udp \
        --publish 53:53/tcp \
        --publish 127.0.0.1:953:953/tcp \
        wachira90/bind9:9.18

Authoritative DNS Server

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 \
        wachira90/bind9:9.18

/etc/bind/named.conf

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).

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;
};

Tag summary

Content type

Image

Digest

sha256:6d4735f65

Size

102.7 MB

Last updated

almost 4 years ago

docker pull wachira90/bind9:9.18