Documentation ¶
Index ¶
- func DefaultConfig() (*dns.ClientConfig, error)
- func DialContext() func(ctx context.Context, network, addr string) (net.Conn, error)
- func DialContextAt(servers []string, host string) func(ctx context.Context, network, addr string) (net.Conn, error)
- func LookupIP(host string, ipv6 ...bool) ([]string, error)
- func LookupIPAt(servers []string, host string, ipv6 ...bool) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶
func DefaultConfig() (*dns.ClientConfig, error)
DefaultConfig get the local dns server
func DialContext ¶
DialContext return a DialContext function for http.Transport, using the local resolver
func DialContextAt ¶
func DialContextAt(servers []string, host string) func(ctx context.Context, network, addr string) (net.Conn, error)
DialContextAt return a DialContext function for http.Transport, using the given resolvers
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.