Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 444 Bytes

README.md

File metadata and controls

19 lines (16 loc) · 444 Bytes

dnsmonitor

  -httpHostPort string
      <host>:<port> for exposing the metrics (default "localhost:9111")
  -interface string
      interface to listen on
  -promisc
      promiscuous mode (default true)
  -snaplen int
      packet snap length (default 65536)
  -verbose
      enable debug logging

Build

LDFLAGS='-l/usr/lib/libpcap.a' CGO_ENABLED=1
go build -ldflags '-linkmode external -extldflags -static' -o dnsmon