mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
FEATURE: Add rTypes restrictions to IGNORE_NAME (#1808)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
@@ -119,9 +119,15 @@ func (config *DNSConfig) DomainContainingFQDN(fqdn string) *DomainConfig {
|
||||
return d
|
||||
}
|
||||
|
||||
// IgnoreName describes an IGNORE_NAME rule.
|
||||
type IgnoreName struct {
|
||||
Pattern string `json:"pattern"` // Glob pattern.
|
||||
Types string `json:"types"` // All caps rtype names, comma separated.
|
||||
}
|
||||
|
||||
// IgnoreTarget describes an IGNORE_TARGET rule.
|
||||
type IgnoreTarget struct {
|
||||
Pattern string `json:"pattern"` // Glob pattern
|
||||
Pattern string `json:"pattern"` // Glob pattern.
|
||||
Type string `json:"type"` // All caps rtype name.
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ type DomainConfig struct {
|
||||
Records Records `json:"records"`
|
||||
Nameservers []*Nameserver `json:"nameservers,omitempty"`
|
||||
KeepUnknown bool `json:"keepunknown,omitempty"`
|
||||
IgnoredNames []string `json:"ignored_names,omitempty"`
|
||||
IgnoredNames []*IgnoreName `json:"ignored_names,omitempty"`
|
||||
IgnoredTargets []*IgnoreTarget `json:"ignored_targets,omitempty"`
|
||||
AutoDNSSEC string `json:"auto_dnssec,omitempty"` // "", "on", "off"
|
||||
//DNSSEC bool `json:"dnssec,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user