dnsdist + dnstap

real quick, wanted to document this for others out there. here’s the steps you need to run dnsdist + dnstap to log/process your dns queries easily

 

sudo apt-get install -y golang

go get -u github.com/dnstap/golang-dnstap/dnstap

sudo vi /etc/dnsdist/dnsdist.conf

# Add these lines
rl = newFrameStreamTcpLogger("127.0.0.1:8000")
addResponseAction(AllRule(), DnstapLogResponseAction("rdns", rl))

:wq

sudo systemctl restart dnsdist.service

go/bin/dnstap -l 127.0.0.1:8000

And you’re all set.

Comments are closed.