Documentation
¶
Overview ¶
Package dnsx abstracts DNS TXT lookups behind an interface so domain verification is testable with an injected fake resolver. The production implementation uses net.Resolver.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TXTName ¶
TXTName is the record name a domain must publish for verification. Agentry looks up a dedicated subdomain so the org's apex TXT records are untouched.
Types ¶
type Resolver ¶
Resolver looks up TXT records for a name. net.Resolver satisfies a superset of this; SystemResolver adapts it.
type SystemResolver ¶
type SystemResolver struct{}
SystemResolver is the production Resolver backed by the OS resolver.
func NewSystemResolver ¶
func NewSystemResolver() SystemResolver
NewSystemResolver returns a Resolver using net.DefaultResolver.
Click to show internal directories.
Click to hide internal directories.