Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNetworkNotSupported = errors.New("network not supported") ErrAnswerNotReceived = errors.New("response answer not received") ErrAnswerTypeMismatch = errors.New("answer type is not expected") ErrAnswerTypeNotSupported = errors.New("answer type not supported") ErrRecordEmpty = errors.New("record is empty") ErrIPMalformed = errors.New("IP address malformed") )
View Source
var (
ErrIPNotFoundForVersion = errors.New("IP addresses found but not for IP version")
)
View Source
var (
ErrTooManyTXTRecords = errors.New("too many TXT records")
)
View Source
var ErrUnknownProvider = errors.New("unknown public IP echo DNS provider")
Functions ¶
func ValidateProvider ¶
Types ¶
type Client ¶
type Client interface {
ExchangeContext(ctx context.Context, m *dns.Msg, a string) (r *dns.Msg, rtt time.Duration, err error)
}
Client is an interface for the DNS client used in the implementation in this package. You SHOULD NOT use this interface anywhere as it is implementation specific.
Click to show internal directories.
Click to hide internal directories.