Local DNS resolver using DoH for privacy, in a tiny container and support for cloud and local infra.
2.9K
A secure, minimal DNS resolver container with DNS-over-HTTPS (DoH), caching, and split DNS — ideal for cloud and local infrastructure.
edelux/dns-proxy is a lightweight container built from Debian Stable and designed for high-security, low-footprint DNS resolution.
This image combines dnscrypt-proxy and dnsmasq to provide:
dnsmasqnobody userdpkg -x during build (no apt install needed at runtime)Run the container with default ports and custom parameters:
docker run --rm -p 53:53/udp -d edelux/dns-proxy
docker run --rm -p 53:53/udp -d edelux/dns-proxy \
--anonymized \
--server=/ec2.internal/10.18.0.2 \
--server=/amazonaws.com/10.18.0.2
This configuration enables:
Configuration is handled at runtime using command-line flags:
| Flag | Description |
|---|---|
| --server= | Specifies a plain DNS server (e.g. --server=/amazonaws.com/10.18.0.2). Recommended for internal or cloud-specific domains. |
| --doh-server= | Defines the secure DoH or DNSCrypt v2 server. Supports DNSCrypt, DoH, Anonymized DNSCrypt, and ODoH. |
| --doh-route= | Specifies which anonymized resolver to use when querying DoH providers. |
| --nocache | Disables all DNS caching. Useful for debugging or environments where caching is not desirable. |
| --cachesize= | Sets the maximum number of DNS entries to cache. Set to 0 to disable caching entirely. |
| --anonymized | Enables anonymized routing of DoH queries using relay resolvers. |
All parameters are optional and can be combined freely.
This project is released under the MIT
This project was formerly published as:
Support for new images will continue under the new name edelux/dns-proxy. The previous image and repository will remain available but will only mirror updates made to this project until December 31, 2025.
Content type
Image
Digest
sha256:1af0aa7b5…
Size
27.5 MB
Last updated
4 days ago
docker pull edelux/dns-proxy