Documentation ¶
Index ¶
- type Resolver
- func (r *Resolver) CleanCache(duration time.Duration)
- func (r *Resolver) RemoteUDPResolver() (*net.Resolver, error)
- func (r *Resolver) Resolve(ctx context.Context, host string) (context.Context, net.IP, error)
- func (r *Resolver) ResolveWithSecondaryDNS(ctx context.Context, host string) (context.Context, net.IP, error)
- func (r *Resolver) SetPermanentDNS(host string, ip net.IP)
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
}
func NewResolver ¶
func (*Resolver) CleanCache ¶ added in v0.7.0
func (*Resolver) Resolve ¶
Resolve ip address. If the host should be visited via VPN, this function set a USE_VPN value in context
func (*Resolver) ResolveWithSecondaryDNS ¶
Click to show internal directories.
Click to hide internal directories.