coredns/middleware/dnstap
varyoo 1b7492be6e WIP: middleware/dnstap (#711)
middleware/dnstap add
2017-07-24 14:12:50 -07:00
..
msg WIP: middleware/dnstap (#711) 2017-07-24 14:12:50 -07:00
out WIP: middleware/dnstap (#711) 2017-07-24 14:12:50 -07:00
taprw WIP: middleware/dnstap (#711) 2017-07-24 14:12:50 -07:00
test WIP: middleware/dnstap (#711) 2017-07-24 14:12:50 -07:00
handler.go WIP: middleware/dnstap (#711) 2017-07-24 14:12:50 -07:00
handler_test.go WIP: middleware/dnstap (#711) 2017-07-24 14:12:50 -07:00
README.md WIP: middleware/dnstap (#711) 2017-07-24 14:12:50 -07:00
setup.go WIP: middleware/dnstap (#711) 2017-07-24 14:12:50 -07:00
setup_test.go WIP: middleware/dnstap (#711) 2017-07-24 14:12:50 -07:00

Dnstap

Syntax

dnstap SOCKET [full]

  • SOCKET is the socket path supplied to the dnstap command line tool.
  • full to include the wire-format dns message.

Dnstap command line tool

go get github.com/dnstap/golang-dnstap
cd $GOPATH/src/github.com/dnstap/golang-dnstap/dnstap
go build
./dnstap -u /tmp/dnstap.sock
./dnstap -u /tmp/dnstap.sock -y

There is a buffer, expect at least 13 requests before the server sends its dnstap messages to the socket.