Documentation ¶
Index ¶
- Variables
- func CreateDialer(dnsServer string) func(context.Context, string, string) (net.Conn, error)
- func DNSAAAALookup(domain string, dnsServers []string) ([]net.IP, error)
- func DNSALookup(domain string, dnsServers []string) ([]net.IP, error)
- func DNSLookup(domain string, dnsServers []string) ([]net.IPAddr, error)
- func MergeIPArrays(a []net.IPAddr, b []net.IPAddr) []net.IPAddr
- type DNSCaller
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultDNSServers = []string{
"1.1.1.1:53",
"8.8.8.8:53",
"208.67.222.222:53",
}
Functions ¶
func CreateDialer ¶
CreateDialer creates a dialer callback function for use with DNSLookup.
Types ¶
Click to show internal directories.
Click to hide internal directories.