Documentation
¶
Overview ¶
Package dnsresolver provides automatic DNS failover for vmflow outbound connections.
Index ¶
- type Resolver
- func (resolver *Resolver) DialContext(ctx context.Context, dialer *net.Dialer, network, address string) (net.Conn, error)
- func (resolver *Resolver) LookupHost(ctx context.Context, host string) ([]string, error)
- func (resolver *Resolver) LookupIPAddr(ctx context.Context, host string) ([]net.IPAddr, error)
- func (resolver *Resolver) LookupTXT(ctx context.Context, name string) ([]string, error)
- func (resolver *Resolver) ResolveTCPAddr(ctx context.Context, network, address string) (*net.TCPAddr, error)
- func (resolver *Resolver) ResolveUDPAddr(ctx context.Context, network, address string) (*net.UDPAddr, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver tries the host operating system policy first and then the built-in domestic fallback resolvers. Temporarily failed sources are retried after a short cooldown, so normal system DNS automatically becomes primary again.
func (*Resolver) DialContext ¶
func (resolver *Resolver) DialContext(ctx context.Context, dialer *net.Dialer, network, address string) (net.Conn, error)
DialContext resolves the host with automatic failover, then dials the returned addresses within the dialer's overall timeout/deadline.
func (*Resolver) LookupHost ¶
LookupHost resolves host and returns textual IP addresses.
func (*Resolver) LookupIPAddr ¶
LookupIPAddr resolves host using automatic failover.
Click to show internal directories.
Click to hide internal directories.