Versions in this module Expand all Collapse all v1 v1.8.7 Dec 27, 2023 v1.0.0 Dec 27, 2023 Changes in this version + var ErrEmptyResponse = errors.New("empty response") + var FakeIPv4Pool = "198.18.0.0/15" + var FakeIPv6Pool = "fc00::/18" + func ClientType() interface + func RCodeFromError(err error) uint16 + type Client interface + LookupIP func(domain string, option IPOption) ([]net.IP, error) + type FakeDNSEngine interface + GetDomainFromFakeDNS func(ip net.Address) string + GetFakeIPForDomain func(domain string) []net.Address + type FakeDNSEngineRev0 interface + GetFakeIPForDomain3 func(domain string, IPv4, IPv6 bool) []net.Address + IsIPInIPPool func(ip net.Address) bool + type HostsLookup interface + LookupHosts func(domain string) *net.Address + type IPOption struct + FakeEnable bool + IPv4Enable bool + IPv6Enable bool + type RCodeError uint16 + func (e RCodeError) Error() string