Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HitsCount = promauto.NewCounterVec(prometheus.CounterOpts{ Namespace: plugin.Namespace, Subsystem: "bogus", Name: "hits_count_total", Help: "Counter of hits bogus.", }, []string{"to"}) )
Variables declared for monitoring.
Functions ¶
This section is empty.
Types ¶
type ResponseReverter ¶
type ResponseReverter struct { dns.ResponseWriter // contains filtered or unexported fields }
ResponseReverter reverses the operations done on the question section of a packet. This is need because the client will otherwise disregards the response, i.e. dig will complain with ';; Question section mismatch: got example.org/HINFO/IN'
func NewResponseReverter ¶
func NewResponseReverter(w dns.ResponseWriter, r *dns.Msg, bogus []net.IP) *ResponseReverter
NewResponseReverter returns a pointer to a new ResponseReverter.
Click to show internal directories.
Click to hide internal directories.