HUB
Sign inSign up
dnsresolver logo

webkutir/dnsresolver

By webkutir

•Updated 21 days ago

Docker Image for BIND 9.20.24 on Ubuntu 26.10. Recursive DNS for trusted clients only.

Image
Networking
0

283

webkutir/dnsresolver repository overview

Recursive BIND resolver for other containers on a private network. It answers DNS queries from trusted addresses and validates DNSSEC.

⁠Image

  • Base image: ubuntu:26.10
  • BIND 9.20.24, the version packaged in Ubuntu 26.10
  • Listens on port 53, TCP and UDP
  • Started with -4, so it answers on IPv4

⁠Behavior in this image

  • Recursion is on for 127.0.0.1 and the range in TRUSTED_CLIENTS_IP. Other clients are refused.
  • DNSSEC validation is set to auto.
  • The version string returned to clients is hidden.
  • Query logging is on.
  • No forwarders are set. BIND resolves from the root servers.

TRUSTED_CLIENTS_IP should be the private network that is allowed to query this resolver. A public address range would turn it into an open resolver.

⁠Required environment

VariablePurpose
TRUSTED_CLIENTS_IPClient range allowed to use recursion, in BIND syntax. Example: 172.30.0.0/16

⁠Run

docker run -d --name dnsresolver \
  -p 53:53/udp -p 53:53/tcp \
  -e TRUSTED_CLIENTS_IP=172.30.0.0/16 \
  webkutir/dnsresolver:9.20.24

Point other containers at this resolver with Docker's dns setting.

Tag summary
Recent tags
Content type
Image
Digest
sha256:3393767d7…
Size
57.1 MB
Last updated
21 days ago
docker pull webkutir/dnsresolver:latest