resolver

package
v0.0.0-...-1999683 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageExchangeor

type MessageExchangeor interface {
	Exchange(m *dns.Msg, address string) (r *dns.Msg, rtt time.Duration, err error)
}

type Resolver

type Resolver struct {
	Class uint16
	Type  uint16
	Port  string

	Exchangeor     MessageExchangeor
	DefaultMsgSize uint16
}

func (Resolver) Resolve

func (r Resolver) Resolve(domain, server string) (rtt time.Duration, secure bool, err error)

Resolve records for a given domain/server returns round trip time, a secure flag, and error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL