Versions in this module Expand all Collapse all v1 v1.0.2 Jan 2, 2021 Changes in this version + const Append + const Continue + const ExactMatch + const PrefixMatch + const RegexMatch + const Replace + const Set + const Stop + const SubstringMatch + const SuffixMatch + type ResponseReverter struct + ResponseRewrite bool + ResponseRules []ResponseRule + func NewResponseReverter(w dns.ResponseWriter, r *dns.Msg) *ResponseReverter + func (r *ResponseReverter) Write(buf []byte) (int, error) + func (r *ResponseReverter) WriteMsg(res *dns.Msg) error + type ResponseRule struct + Active bool + Pattern *regexp.Regexp + Replacement string + TTL uint32 + Type string + type Result int + const RewriteDone + const RewriteIgnored + type Rewrite struct + Next plugin.Handler + Rules []Rule + func (rw Rewrite) Name() string + func (rw Rewrite) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) + type Rule interface + GetResponseRule func() ResponseRule + Mode func() string + Rewrite func(ctx context.Context, state request.Request) Result