A Dockerized minimal dnstap application with supporting example using CoreDNS's dnstap plugin orchestrated using docker-compose.
In order to log all of the DNS queries / responses without sniffing packets over the wire, a number of DNS Servers provide a hook to listen to these events and publish to a service called dnstap. There are currently no minimal dnstap images which I could find and a way to demonstrate it working simply which I could find.
$docker-compose pull
$docker-compose up -d
Point your dns service at 127.0.0.1 and view the logs for dns requests which will be routed to Cloudflare 1.1.1.1 and 1.0.0.1 over TLS.
The CoreDNS Corefile can be tweaked as part of the install and the usual docker-compose commands can be used to restart containers when changes have been made.
The dnstap application image is published to Docker hub as mattjtodd/dnstap.
It can easily be rebuilt locally should you need to test something by running
docker-compose build
network_mode: service:coredns in the dnstap service block.Content type
Image
Digest
Size
2.7 MB
Last updated
almost 7 years ago
docker pull mattjtodd/dnstap