Documentation
¶
Overview ¶
Package audit checks published DNS through a real resolver rather than through the provider API, because the API reports what you asked for and not what the internet sees.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Report ¶
func Run ¶
func Run(ctx context.Context, d config.Domain, desired []dns.Record, resolver Resolver, fetcher Fetcher) Report
Run resolves every desired record and, when MTA-STS is configured, fetches the policy endpoint. mode: none is included: it is a published withdrawal policy (a rotated _mta-sts TXT id plus a Worker serving mode: none), not an absence of publication, so it is audited like any other mode.
type Resolver ¶
type Resolver interface {
LookupMX(ctx context.Context, name string) ([]string, error)
LookupTXT(ctx context.Context, name string) ([]string, error)
LookupCNAME(ctx context.Context, name string) (string, error)
}
func NetResolver ¶
func NetResolver() Resolver
NetResolver returns a Resolver backed by the system resolver.
Click to show internal directories.
Click to hide internal directories.