# Packages
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LookupIP with a host, return ip.
LookupIPv4 with a host, return ipv4 list.
LookupIPv4WithResolver same as LookupIPv4, but with a resolver.
LookupIPv6 with a host, return ipv6 list.
LookupIPv6WithResolver same as LookupIPv6, but with a resolver.
LookupIPWithResolver same as LookupIP, but with a resolver.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RelayDnsPacket will truncate udp message up to SafeDnsPacketSize.
No description provided by the author
No description provided by the author
ResolveIP with a host, return ip and priority return TypeA.
ResolveIPv4 with a host, return ipv4.
ResolveIPv4WithResolver same as ResolveIPv4, but with a resolver.
No description provided by the author
ResolveIPv6WithResolver same as ResolveIPv6, but with a resolver.
ResolveIPWithResolver same as ResolveIP, but with a resolver.
ServeMsg with a dns.Msg, return resolve dns.Msg.
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
safe size which is 1232 from https://dnsflagday.net/2020/, so 2048 is enough.
# Variables
DefaultDNSTimeout defined the default dns request timeout.
No description provided by the author
DefaultHosts aim to resolve hosts.
No description provided by the author
DefaultResolver aim to resolve ip.
DirectHostResolver resolve ip for direct outbound host, only nil when DefaultResolver is nil.
DisableIPv6 means don't resolve ipv6 host default value is true.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ProxyServerHostResolver resolve ip for proxies server host, only nil when DefaultResolver is nil.
SystemResolver always using system dns, and was init in dns module.
No description provided by the author
# Interfaces
No description provided by the author
No description provided by the author
No description provided by the author