Archive for October, 2019

dnsdist + dnstap

Saturday, October 5th, 2019

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.