sarim / stubby-docker

Size optimized Stubby container to run in embedded environment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stubby Docker Images

What does this do?

Goal of this repo is to have a stubby image optimized to size, to be used easily in embedded devices, aka router. Right now size of this image is only 4.83 MB. I removed unbound as router's internal DNS server performs the caching duty.

For more info check out MatthewVance repo.

~~ This allows you to run Stubby without losing the performance benefits of having a local caching DNS resolver. Historically, Stubby had better DNS over TLS support than Unbound. ~~

~~ To achieve this, this setup uses two containers, one running Stubby and another running Unbound. Unbound exposes DNS over port 53 and forwards requests not in its cache to the Stubby container on port 8053 (not publically exposed). Stubby then performs DNS resolution over TLS. ~~ By default, this is configured to use Cloudflare DNS.

How to use

Building

cd stubby
podman build --format docker -t sarim/stubby:1.7.0 .

Standard usage

Run these containers with the following command:

docker-compose up -d

Adjust ports and stubby.yml config file as needed.

Next, point your DNS to the IP of your Docker host running the Stubby container.

Issues

If you have any problems with or questions about this image, please contact me through a GitHub issue.

Acknowledgments

These deserve credit for making this all possible.

Licenses

License

Unless otherwise specified, all code is released under the MIT License (MIT). See the repository's LICENSE file for details.

Licenses for other components

About

Size optimized Stubby container to run in embedded environment

License:MIT License


Languages

Language:Dockerfile 100.0%