Documentation ¶
Index ¶
- Constants
- Variables
- func HTTPS(m *dns.Msg, options ...Option) (*dns.Msg, error)
- func Simple(name string, qtype uint16, options ...Option) (*dns.Msg, error)
- func TCP(m *dns.Msg, options ...Option) (*dns.Msg, error)
- func TLS(m *dns.Msg, options ...Option) (*dns.Msg, error)
- func UDP(m *dns.Msg, options ...Option) (*dns.Msg, error)
- type Dig
- func (d *Dig) Exchange(m *dns.Msg, options ...Option) (*dns.Msg, error)
- func (d *Dig) ExchangeContext(ctx context.Context, m *dns.Msg, options ...Option) (*dns.Msg, error)
- func (d *Dig) ExchangeContextWithRTT(ctx context.Context, m *dns.Msg, options ...Option) (*dns.Msg, time.Duration, error)
- func (d *Dig) ExchangeWithRTT(m *dns.Msg, options ...Option) (*dns.Msg, time.Duration, error)
- type Option
- type OptionNet
- type OptionTLSConfig
- type OptionTarget
- type ResolvInterface
Constants ¶
View Source
const ContentType = "application/dns-message"
Variables ¶
View Source
var ( DefaultResolvers []string ErrPackMsg = fmt.Errorf("failed to pack request dns message") ErrParseTarget = fmt.Errorf("failed to parse target url") ErrCreateRequest = fmt.Errorf("failed to create http post request") ErrRequest = fmt.Errorf("failed to request") ErrUnsupportedContentType = fmt.Errorf("unsupported content type is received") ErrReadBody = fmt.Errorf("failed to read body") ErrNotOK = fmt.Errorf("status code is not 200") ErrParseMsg = fmt.Errorf("failed to parse DNS message") )
Functions ¶
Types ¶
type Dig ¶
func (*Dig) ExchangeContext ¶ added in v1.4.2
func (*Dig) ExchangeContextWithRTT ¶ added in v1.7.0
type OptionTLSConfig ¶
func (*OptionTLSConfig) Option ¶
func (o *OptionTLSConfig) Option(c *Dig) error
type OptionTarget ¶
type OptionTarget struct {
Target string
}
func (*OptionTarget) Option ¶
func (o *OptionTarget) Option(c *Dig) error
Click to show internal directories.
Click to hide internal directories.