Versions in this module Expand all Collapse all v0 v0.2.0 Sep 28, 2021 v0.1.0 Sep 28, 2021 Changes in this version + func NewMemoryResolver(r *MemResolver) *net.Resolver — darwin/amd64, linux/amd64 + type MemResolver struct — darwin/amd64, linux/amd64 + LookupAddr func(ctx context.Context, addr string) (names []string, err error) + LookupCNAME func(ctx context.Context, host string) (cname string, err error) + LookupHost func(ctx context.Context, host string) (addrs []string, err error) + LookupIP func(ctx context.Context, network, host string) ([]net.IP, error) + LookupMX func(ctx context.Context, name string) ([]*net.MX, error) + LookupNS func(ctx context.Context, name string) ([]*net.NS, error) + LookupPort func(ctx context.Context, network, service string) (port int, err error) + LookupSRV func(ctx context.Context, service, proto, name string) (cname string, addrs []*net.SRV, err error) + LookupTXT func(ctx context.Context, name string) ([]string, error) + func (r *MemResolver) Dial(ctx context.Context, network, address string) (net.Conn, error) + func (r *MemResolver) ProcessDNSRequest(id uint16, q dnsmessage.Question) []byte