PowerDNS dnsdist is a highly DNS-, DoS- and abuse-aware loadbalancer. A full description can be found on the project website.
Docker image with PowerDNS dnsdist.
- Docker: https://hub.docker.com/r/tmuncks/dnsdist/
- Github: https://github.com/tmuncks/docker-dnsdist/
It is possible to specify downstream servers directly on the docker command line:
docker run -d -p 53:53 -p 53:53/udp tmuncks/dnsdist:latest 8.8.8.8 8.8.4.4
The image becomes a lot more flexible when using a configuration file.
Mount a full PowerDNS dnsdist configuration on /etc/dnsdist/dnsdist.conf
in the container.
Please note: The container ENTRYPOINT specifies --local=0.0.0.0
which effectively disables setLocal() statements in the configuration file.
Have a look here for all available dnsdist settings.
Dnsdist forwarding queries to 8.8.8.8
and 8.8.4.4
:
docker run -d -p 53:53 -p 53:53/udp tmuncks/dnsdist:latest 8.8.8.8 8.8.4.4