Documentation ¶
Overview ¶
Package miekgrrl is a tiny helper package which creates a github.com/markdingo/rrl.ResponseTuple from a github.com/miekg/dns.Msg.
A “ResponseTuple” is passed to the github.com/markdingo/rrl.Debit function for “Response Rate Limiting” analysis.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Derive ¶
func Derive(response *dns.Msg, wildcardOriginName string) (tuple *rrl.ResponseTuple)
Derive creates a github.com/markdingo/rrl.ResponseTuple from a github.com/miekg/dns response Msg for the purpose of passing to the github.com/markdingo/rrl.Debit “Response Rate Limiting” function.
If the response has been formulated from a wildcard the caller *must* supply the origin name of the owning zone in the wildcardOriginName argument. Normally that will be qName with the first label removed but the following is also a valid zone:
$ORIGIN example.net. *.a.b.c IN TXT "my origin name is example.net."
thus one cannot blindly remove the first label and hope for the best.
Types ¶
This section is empty.