dnscontrol/pkg/js/parse_tests/054-b3487_d_extend_rev.json
Tom Limoncelli a0288bd759
bug(split horizon): Domains with split horizons not working (#3895)
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.
2025-12-05 11:41:16 -05:00

123 lines
2.8 KiB
JSON

{
"dns_providers": [
{
"name": "bind",
"type": "CLOUDFLAREAPI"
}
],
"domains": [
{
"dnsProviders": {
"bind": -1
},
"meta": {
"dnscontrol_uniquename": "6.10.in-addr.arpa"
},
"name": "6.10.in-addr.arpa",
"records": [
{
"filepos": "[line:5:5]",
"name": "31.104",
"target": "example.site.com.",
"ttl": 300,
"type": "PTR"
},
{
"filepos": "[line:6:5]",
"name": "206.104",
"target": "example2.site.com.",
"ttl": 300,
"type": "PTR"
},
{
"filepos": "[line:17:5]",
"name": "0.119",
"subdomain": "119",
"target": "ip-10-6-119-0.example.com.",
"ttl": 300,
"type": "PTR"
},
{
"filepos": "[line:18:5]",
"name": "1.119",
"subdomain": "119",
"target": "ip-10-6-119-1.example.com.",
"ttl": 300,
"type": "PTR"
},
{
"filepos": "[line:19:5]",
"name": "2.119",
"subdomain": "119",
"target": "ip-10-6-119-2.example.com.",
"ttl": 300,
"type": "PTR"
},
{
"filepos": "[line:20:5]",
"name": "3.119",
"subdomain": "119",
"target": "ip-10-6-119-3.example.com.",
"ttl": 300,
"type": "PTR"
},
{
"filepos": "[line:10:5]",
"name": "50.200",
"subdomain": "200",
"target": "ip-10-6-200-50.example.com.",
"ttl": 300,
"type": "PTR"
},
{
"filepos": "[line:11:5]",
"name": "51.200",
"subdomain": "200",
"target": "ip-10-6-200-51.example.com.",
"ttl": 300,
"type": "PTR"
},
{
"filepos": "[line:12:5]",
"name": "52.200",
"subdomain": "200",
"target": "ip-10-6-200-52.example.com.",
"ttl": 300,
"type": "PTR"
},
{
"filepos": "[line:13:5]",
"name": "53.200",
"subdomain": "200",
"target": "ip-10-6-200-53.example.com.",
"ttl": 300,
"type": "PTR"
},
{
"filepos": "[line:24:5]",
"name": "20.220",
"subdomain": "220",
"target": "ip-10-6-220-20.example.com.",
"ttl": 300,
"type": "PTR"
},
{
"filepos": "[line:28:5]",
"name": "30.230",
"subdomain": "230",
"target": "ip-10-6-230-30.example.com.",
"ttl": 300,
"type": "PTR"
}
],
"registrar": "none",
"uniquename": "6.10.in-addr.arpa"
}
],
"registrars": [
{
"name": "none",
"type": "-"
}
]
}