mirror of
https://github.com/coredns/coredns.git
synced 2025-12-04 01:15:11 -05:00
IP endpoint for dnstap (#1002)
* adds the option to log to a remote endpoint * examples * tests * tcp:// or default to unix:// * cosmetic update * bad naked returns
This commit is contained in:
@@ -24,7 +24,13 @@ dnstap /tmp/dnstap.sock
|
||||
Log information including the wire-format DNS message about client requests and responses to */tmp/dnstap.sock*.
|
||||
|
||||
~~~ txt
|
||||
dnstap /tmp/dnstap.sock full
|
||||
dnstap unix:///tmp/dnstap.sock full
|
||||
~~~
|
||||
|
||||
Log to a remote endpoint.
|
||||
|
||||
~~~ txt
|
||||
dnstap tcp://127.0.0.1:6000 full
|
||||
~~~
|
||||
|
||||
## Dnstap command line tool
|
||||
@@ -47,3 +53,9 @@ The following command listens on the given socket and saves message payloads to
|
||||
~~~ sh
|
||||
dnstap -u /tmp/dnstap.sock -w /tmp/test.dnstap
|
||||
~~~
|
||||
|
||||
Listen for dnstap messages on port 6000.
|
||||
|
||||
~~~ sh
|
||||
dnstap -l 127.0.0.1:6000
|
||||
~~~
|
||||
|
||||
Reference in New Issue
Block a user