Codebase list zonedb / d63836d
internal/build: extract registry operator name from ICANN gTLD feed Randy Reddig 2 years ago
2 changed file(s) with 21 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
7575 Trace("@{y}Brand gTLD without ICANN Specification 13: @{y!}%s\n", z.Domain)
7676 }
7777
78 // Extract registry operator
79 if g.RegistryOperator != "" {
80 z.RegistryOperator = g.RegistryOperator
81 modified = true
82 }
83
7884 if modified {
7985 zonesModified++
8086 }
97103 RegistryOperator string `json:"registryOperator"`
98104 RegistryOperatorCountryCode *string `json:"registryOperatorCountryCode"` // (always null)
99105 RemovalDate ISODate `json:"removalDate"`
100 Specification13 bool `json:"specification13"` // Brand TLD
101 ThirdOrLowerLevelRegistration bool `json:"thirdOrLowerLevelRegistration"`
102 ULabel string `json:"uLabel"` // Unicode IDN label
106 Specification13 bool `json:"specification13"` // Brand TLD
107 ThirdOrLowerLevelRegistration bool `json:"thirdOrLowerLevelRegistration"` // (always false or null)
108 ULabel string `json:"uLabel"` // Unicode IDN label
103109 } `json:"gTLDs"`
104110 // UpdatedOn time.Time `json:"updatedOn"` // Ignored because of nonstandard format
105111 Version int `json:"version"`
1212
1313 // Zone represents a build-time DNS zone (public suffix).
1414 type Zone struct {
15 Domain string `json:"domain,omitempty"`
16 InfoURL string `json:"infoURL,omitempty"`
17 WhoisServer string `json:"whoisServer,omitempty"`
18 WhoisURL string `json:"whoisURL,omitempty"`
19 RDAPURLs []string `json:"rdapURLs,omitempty"`
20 NameServers []string `json:"nameServers,omitempty"`
21 Wildcards []string `json:"wildcards,omitempty"`
22 Locations []string `json:"locations,omitempty"`
23 Languages []string `json:"languages,omitempty"`
24 Tags []string `json:"tags,omitempty"`
25 Policies []Policy `json:"policies,omitempty"`
15 Domain string `json:"domain,omitempty"`
16 RegistryOperator string `json:"registryOperator,omitempty"`
17 InfoURL string `json:"infoURL,omitempty"`
18 WhoisServer string `json:"whoisServer,omitempty"`
19 WhoisURL string `json:"whoisURL,omitempty"`
20 RDAPURLs []string `json:"rdapURLs,omitempty"`
21 NameServers []string `json:"nameServers,omitempty"`
22 Wildcards []string `json:"wildcards,omitempty"`
23 Locations []string `json:"locations,omitempty"`
24 Languages []string `json:"languages,omitempty"`
25 Tags []string `json:"tags,omitempty"`
26 Policies []Policy `json:"policies,omitempty"`
2627
2728 // Internal
2829 subdomains []string