Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 1.24 KB

README.md

File metadata and controls

36 lines (23 loc) · 1.24 KB

dns-stats-docker

DNS Stats Compactor configured to run on Docker and Kubernetes.

Compactor Usage

Mount /var/dnstap/ in both the dns-stats-compactor container and the name server container. This will contain the dnstap.sock Unix socket.

Mount /var/log/dnstap/ in the dns-stats-compactor container. This will contain the logs from compactor.

Optionally, mount a config map at /etc/dns-stats-compactor/ to provide compactor.conf.

Run dns-stats-compactor in the same Kubernetes pod as your name server. I found this blog post on multi container pods useful.

Configure your name server to send dnstap records to the dnstap Unix socket.

Inspector Usage

Download the MaxMind GeoIP Lite City and ASN databases and create a mount at /usr/share/GeoIP containing the uncompressed mmdb files.

Build

  • cd compactor
  • vi Makefile: Modify IMAGES_REPO to point to your repo.
  • make all: Build the image and push it to your repo.

Prebuilt Containers