mirror of
https://github.com/11notes/docker-bind.git
synced 2025-10-23 00:02:09 +00:00
3e33fb8ad6c78523a4a7a7f69464a934bfbf181a
🏔️ Alpine - BIND9
BIND9 DNS server
SYNOPSIS
What can I do with this? This image will run BIND9 DNS server precompiled for large installations and maximum performance.
VOLUMES
- /bind/etc - Directory of named.conf
- /bind/var - Directory of zone data
RUN
docker run --name bind \
-v .../etc:/bind/etc \
-v .../var:/bind/var \
-d 11notes/bind:[tag]
EXAMPLES
config /bind/etc/named.conf
options {
listen-on { any; };
directory "/bind/etc";
recursion no;
allow-notify { none; };
forwarders { 9.9.9.9; 9.9.9.10; };
version "0.0";
auth-nxdomain no;
max-cache-size 0;
dnssec-validation auto;
};
statistics-channels {
inet 0.0.0.0 port 8053;
};
server ::/0 { bogus yes; };
DEFAULT SETTINGS
Parameter | Value | Description |
---|---|---|
user |
docker | user docker |
uid |
1000 | user id 1000 |
gid |
1000 | group id 1000 |
home |
/bind | home directory of user docker |
ENVIRONMENT
Parameter | Value | Default |
---|---|---|
TZ |
Time Zone | |
DEBUG |
Show debug information |
PARENT IMAGE
BUILT WITH
TIPS
- Only use rootless container runtime (podman, rootless docker)
- Allow non-root ports < 1024 via
echo "net.ipv4.ip_unprivileged_port_start=53" > /etc/sysctl.d/ports.conf
- Use a reverse proxy like Traefik, Nginx to terminate TLS with a valid certificate
- Use Let’s Encrypt certificates to protect your SSL endpoints
ElevenNotes™️
This image is provided to you at your own risk. Always make backups before updating an image to a new version. Check the changelog for breaking changes.
Languages
Shell
58.1%
Dockerfile
41.9%