Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dialer ¶
type Dialer struct { // MulticastDomains is a set of fully-qualified names that should be queried // via multicast. If it is empty, "local." is used. MulticastDomains []names.FQDN // UnicastDial is the underlying dialer used to establish a connection to // the unicast DNS server. It defaults to net.Dialer.DialContext(). UnicastDial func(ctx context.Context, net, addr string) (net.Conn, error) }
Dialer provides a Dial() method for use with net.Resolver.Dial.
The native Go resolver does not support mDNS. This dialer returns a proxy connection that intercepts DNS queries that contain questions about mDNS names, and sends them via multicast instead of to the unicast DNS server.
Click to show internal directories.
Click to hide internal directories.