Versions in this module Expand all Collapse all v0 v0.64.7 May 27, 2026 Changes in this version + const HeritageV1 + var ErrEmptyOwner = errors.New("dnspolicy: o= field is empty") + var ErrMultipleDefaults = errors.New("dnspolicy: multiple RRs set d=true") + var ErrUnknownHeritage = errors.New("dnspolicy: unknown heritage value (parser ignored RR)") + func MatchPattern(pattern, name string) bool + func Serialize(p *Policy) ([]string, error) + type Adapter interface + type DNSPolicyReader interface + GetTXT func(ctx context.Context, name string) ([]string, error) + UpsertTXT func(ctx context.Context, name string, values []string, ttl int) error + type DNSRecordWriter interface + DeleteRecord func(ctx context.Context, zone, name, recordType string) error + UpsertRecord func(ctx context.Context, zone, name, recordType, data string, ttl, priority int32) (recordID string, err error) + type Entry struct + Default bool + Owner string + Patterns []string + Types []string + type Policy struct + Entries []Entry + Zone string + func Parse(zone string, txtRRs []string) (*Policy, error) + func (p *Policy) CheckAllowed(name, recordType, owner string) error