Versions in this module Expand all Collapse all v0 v0.17.1 Jan 1, 2020 v0.17.0 Dec 29, 2019 Changes in this version type Resolver + func (r *Resolver) FakeIPEnabled() bool v0.16.4 Dec 27, 2019 Changes in this version + var EnhancedModeMapping = map[string]EnhancedMode + func ReCreateServer(addr string, resolver *Resolver) error + func ResolveIP(host string) (net.IP, error) + func ResolveIPv4(host string) (net.IP, error) + func ResolveIPv6(host string) (net.IP, error) + type Config struct + EnhancedMode EnhancedMode + Fallback []NameServer + FallbackFilter FallbackFilter + IPv6 bool + Main []NameServer + Pool *fakeip.Pool + type EnhancedMode int + const FAKEIP + const MAPPING + const NORMAL + func (e *EnhancedMode) UnmarshalJSON(data []byte) error + func (e *EnhancedMode) UnmarshalYAML(unmarshal func(interface{}) error) error + func (e EnhancedMode) MarshalJSON() ([]byte, error) + func (e EnhancedMode) MarshalYAML() ([]byte, error) + func (e EnhancedMode) String() string + type FallbackFilter struct + GeoIP bool + IPCIDR []*net.IPNet + type NameServer struct + Addr string + Net string + type Resolver struct + var DefaultHosts = trie.New() + var DefaultResolver *Resolver + func New(config Config) *Resolver + func (r *Resolver) Exchange(m *D.Msg) (msg *D.Msg, err error) + func (r *Resolver) IPToHost(ip net.IP) (string, bool) + func (r *Resolver) IsFakeIP() bool + func (r *Resolver) IsMapping() bool + func (r *Resolver) ResolveIP(host string) (ip net.IP, err error) + func (r *Resolver) ResolveIPv4(host string) (ip net.IP, err error) + func (r *Resolver) ResolveIPv6(host string) (ip net.IP, err error) + type Server struct + func (s *Server) ServeDNS(w D.ResponseWriter, r *D.Msg)