Documentation ¶
Overview ¶
Package resolve is responsible for everything DNS-related in gocurl.
Index ¶
Constants ¶
const ErrEmptyResponse = errors.Error("empty response")
ErrEmptyResponse means that the response does not contain necessary RRs.
const ErrInvalidResolver = errors.Error("invalid resolver")
ErrInvalidResolver means that the configured resolver is invalid.
const ErrNoResolvers = errors.Error("no resolvers")
ErrNoResolvers means that system resolvers couldn't be discovered.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver is a structure that is used whenever DNS resolution is required.
TODO(ameshkov): Add --resolve parameter support.
func NewResolver ¶
NewResolver creates a new instance of *Resolver.
func (*Resolver) LookupECHConfigs ¶
LookupECHConfigs attempts to discover ECH configurations in DNS records of the specified hostname. If no ECH configuration can be discovered for this domain, the function returns ErrEmptyResponse (checked via errors.Is/As).