Documentation
¶
Index ¶
- Variables
- type Resolver
- func (r *Resolver) Close()
- func (r *Resolver) Dial(network, address string) (net.Conn, error)
- func (r *Resolver) DialContext(ctx context.Context, network, address string) (net.Conn, error)
- func (r *Resolver) DialContextWithDialer(binder *net.Dialer, ctx context.Context, network, address string) (net.Conn, error)
- func (r *Resolver) DialWithDialer(binder *net.Dialer, network, address string) (net.Conn, error)
- func (r *Resolver) Fetch(name string) ([]net.IP, error)
- func (r *Resolver) FetchOne(name string) (net.IP, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDNSFailure = errors.New("DNS Failure") ErrNoIPResolved = errors.New("No IP Resolved") )
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct {
DNS string
TTL int64
Closed bool
Client *dns.Client
Dialer *net.Dialer
// contains filtered or unexported fields
}
func NewResolver ¶
func (*Resolver) DialContext ¶
func (*Resolver) DialContextWithDialer ¶
func (*Resolver) DialWithDialer ¶
Click to show internal directories.
Click to hide internal directories.