Skip to content

gottaeat/docker-bind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-bind

docker-bind provides a bind9 named setup on an alpine image for self hosted dns, clean and simple.

it can be set up to do recursion.

installation

1. get the compose file, set bind mount dir

curl -LO \
    https://github.com/gottaeat/docker-recursive-bind/master/\
docker-compose.yml

mkdir data/

2. set up extra.conf

2.1. configure for recursive

cat << EOF > ./data/extra.conf
zone "." {
    type hint;
    file "/etc/bind/root-nov6";
};
EOF

2.2. configure for forwarding

CF nameservers are used for an example, can be swapped out.

cat << EOF > ./data/extra.conf
zone "." {
    type forward;
    forwarders { 1.1.1.1; 1.0.0.1; };
};
EOF

extra configuration details can also be added to ./data/extra.conf.

3. compose up

docker compose up -d

4. test

dig example.com @127.0.0.1 -p53

About

Configurable BIND9 named container that allows for setting up a forwarding or recursive nameserver.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors