Versions in this module Expand all Collapse all v0 v0.0.2 Aug 1, 2024 Changes in this version + var ErrBadRequest = errors.New("request input is invalid") + var ErrBadResponse = errors.New("response message is invalid") + var ErrDial = errors.New("dial DNS resolver failed") + var ErrReceive = errors.New("receive DNS message failed") + var ErrSend = errors.New("send DNS message failed") + func NewQuestion(domain string, qtype dnsmessage.Type) (*dnsmessage.Question, error) + func NewStreamDialer(resolver Resolver, dialer transport.StreamDialer) (transport.StreamDialer, error) + type FuncResolver func(ctx context.Context, q dnsmessage.Question) (*dnsmessage.Message, error) + func (f FuncResolver) Query(ctx context.Context, q dnsmessage.Question) (*dnsmessage.Message, error) + type Resolver interface + Query func(ctx context.Context, q dnsmessage.Question) (*dnsmessage.Message, error) + func NewHTTPSResolver(sd transport.StreamDialer, resolverAddr string, url string) Resolver + func NewTCPResolver(sd transport.StreamDialer, resolverAddr string) Resolver + func NewTLSResolver(sd transport.StreamDialer, resolverAddr string, resolverName string) Resolver + func NewUDPResolver(pd transport.PacketDialer, resolverAddr string) Resolver