mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-12-09 05:36:27 +08:00
Fixes https://github.com/StackExchange/dnscontrol/issues/3894 # Issue * Split horizon DNS broke in 4.28.0 * Insufficient automated testing to detect this in the future # Resolution * domain.PostProcess() was called twice. The first time the tag was properly parsed, removing the tag from DomainConfig.Name and putting it in DomainConfig.Tag. The second time DomainConfig.Name no longer had the tag and .Tag was set to "". * The JSON output of DomainConfig doesn't output .UniqueName. If it had, this bug would have been noticed prior to release. Test updated to include that field.
55 lines
1.3 KiB
JSON
55 lines
1.3 KiB
JSON
{
|
|
"dns_providers": [],
|
|
"domains": [
|
|
{
|
|
"dnsProviders": {},
|
|
"ignore_external_dns": true,
|
|
"meta": {
|
|
"dnscontrol_uniquename": "extdns-default.com"
|
|
},
|
|
"name": "extdns-default.com",
|
|
"records": [],
|
|
"registrar": "none",
|
|
"uniquename": "extdns-default.com"
|
|
},
|
|
{
|
|
"dnsProviders": {},
|
|
"external_dns_prefix": "extdns-",
|
|
"ignore_external_dns": true,
|
|
"meta": {
|
|
"dnscontrol_uniquename": "extdns-custom.com"
|
|
},
|
|
"name": "extdns-custom.com",
|
|
"records": [],
|
|
"registrar": "none",
|
|
"uniquename": "extdns-custom.com"
|
|
},
|
|
{
|
|
"dnsProviders": {},
|
|
"ignore_external_dns": true,
|
|
"meta": {
|
|
"dnscontrol_uniquename": "extdns-combined.com"
|
|
},
|
|
"name": "extdns-combined.com",
|
|
"records": [
|
|
{
|
|
"filepos": "[line:12:5]",
|
|
"name": "api",
|
|
"target": "www.extdns-combined.com.",
|
|
"ttl": 300,
|
|
"type": "CNAME"
|
|
},
|
|
{
|
|
"filepos": "[line:11:5]",
|
|
"name": "www",
|
|
"target": "1.2.3.4",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
}
|
|
],
|
|
"registrar": "none",
|
|
"uniquename": "extdns-combined.com"
|
|
}
|
|
],
|
|
"registrars": []
|
|
}
|