Documentation ¶
Index ¶
- type BogusNxDomain
- type Filter
- func (m *Filter) AddBogusNxDomainHandler(options []string) error
- func (m *Filter) AddCommand(cmd string, options []string) error
- func (m *Filter) AddPreferHandler(options []string) error
- func (m *Filter) Name() string
- func (m *Filter) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)
- type FilterHandler
- type PreferIPv4
- type PreferIPv6
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BogusNxDomain ¶
type BogusNxDomain struct {
// contains filtered or unexported fields
}
type Filter ¶
type Filter struct { Next plugin.Handler Prefer FilterHandler BugosNxDomain FilterHandler }
Filter implements the plugin.Handler interface.
func NewFilterHandler ¶
func NewFilterHandler() Filter
func (*Filter) AddBogusNxDomainHandler ¶
func (*Filter) AddPreferHandler ¶
type FilterHandler ¶
type FilterHandler interface {
// contains filtered or unexported methods
}
type PreferIPv4 ¶
type PreferIPv4 struct { }
type PreferIPv6 ¶
type PreferIPv6 struct { }
Click to show internal directories.
Click to hide internal directories.