Versions in this module Expand all Collapse all v1 v1.0.4 Jan 18, 2018 v1.0.3 Jan 10, 2018 v1.0.2 Dec 31, 2017 Changes in this version + const ExactMatch + const PrefixMatch + const RegexMatch + const SubstringMatch + const SuffixMatch v1.0.1 Dec 11, 2017 v1.0.0 Dec 1, 2017 v0 v0.9.10 Nov 3, 2017 v0.9.9 Oct 18, 2017 Changes in this version + const Append + const Continue + const EndsWith + const Has + const Is + const Match + const Not + const NotHas + const NotMatch + const Replace + const Set + const StartsWith + const Stop + func Fuzz(data []byte) int + type If struct + A string + B string + Operator string + func NewIf(a, operator, b string) (If, error) + func (i If) True(r *dns.Msg) bool + type ResponseReverter struct + func NewResponseReverter(w dns.ResponseWriter, r *dns.Msg) *ResponseReverter + func (r *ResponseReverter) Hijack() + func (r *ResponseReverter) Write(buf []byte) (int, error) + func (r *ResponseReverter) WriteMsg(res *dns.Msg) error + type Result int + const RewriteDone + const RewriteIgnored + const RewriteStatus + 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 + Mode func() string + Rewrite func(dns.ResponseWriter, *dns.Msg) Result