mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
New feature: IGNORE_TARGET. Rename INGORE to IGNORE_NAME (#806)
This commit is contained in:
@@ -126,3 +126,13 @@ func (config *DNSConfig) DomainContainingFQDN(fqdn string) *DomainConfig {
|
||||
}
|
||||
return d
|
||||
}
|
||||
|
||||
// IgnoreTarget describes an IGNORE_TARGET rule.
|
||||
type IgnoreTarget struct {
|
||||
Pattern string `json:"pattern"` // Glob pattern
|
||||
Type string `json:"type"` // All caps rtype name.
|
||||
}
|
||||
|
||||
func (i *IgnoreTarget) String() string {
|
||||
return i.Pattern
|
||||
}
|
||||
|
||||
@@ -8,16 +8,17 @@ import (
|
||||
|
||||
// DomainConfig describes a DNS domain (tecnically a DNS zone).
|
||||
type DomainConfig struct {
|
||||
Name string `json:"name"` // NO trailing "."
|
||||
RegistrarName string `json:"registrar"`
|
||||
DNSProviderNames map[string]int `json:"dnsProviders"`
|
||||
Name string `json:"name"` // NO trailing "."
|
||||
RegistrarName string `json:"registrar"`
|
||||
DNSProviderNames map[string]int `json:"dnsProviders"`
|
||||
|
||||
Metadata map[string]string `json:"meta,omitempty"`
|
||||
Records Records `json:"records"`
|
||||
Nameservers []*Nameserver `json:"nameservers,omitempty"`
|
||||
KeepUnknown bool `json:"keepunknown,omitempty"`
|
||||
IgnoredLabels []string `json:"ignored_labels,omitempty"`
|
||||
AutoDNSSEC bool `json:"auto_dnssec,omitempty"`
|
||||
Metadata map[string]string `json:"meta,omitempty"`
|
||||
Records Records `json:"records"`
|
||||
Nameservers []*Nameserver `json:"nameservers,omitempty"`
|
||||
KeepUnknown bool `json:"keepunknown,omitempty"`
|
||||
IgnoredNames []string `json:"ignored_names,omitempty"`
|
||||
IgnoredTargets []*IgnoreTarget `json:"ignored_targets,omitempty"`
|
||||
AutoDNSSEC bool `json:"auto_dnssec,omitempty"`
|
||||
//DNSSEC bool `json:"dnssec,omitempty"`
|
||||
|
||||
// These fields contain instantiated provider instances once everything is linked up.
|
||||
|
||||
Reference in New Issue
Block a user