dnscontrol/pkg/js/parse_tests/054-b3487_d_extend_rev.json
Tom Limoncelli 1b2f5d4d34
BUGFIX: IDN support is broken for domain names (#3845)
# Issue

Fixes https://github.com/StackExchange/dnscontrol/issues/3842

CC @das7pad

# Resolution

Convert domain.Name to IDN earlier in the pipeline. Hack the --domains
processing to convert everything to IDN.

* Domain names are now stored 3 ways: The original input from
dnsconfig.js, canonical IDN format (`xn--...`), and Unicode format. All
are downcased. Providers that haven't been updated will receive the IDN
format instead of the original input format. This might break some
providers but only for users with unicode in their D("domain.tld").
PLEASE TEST YOUR PROVIDER.
* BIND filename formatting options have been added to access the new
formats.

# Breaking changes

* BIND zonefiles may change. The default used the name input in the D()
statement. It now defaults to the IDN name + "!tag" if there is a tag.
* Providers that are not IDN-aware may break (hopefully only if they
weren't processing IDN already)

---------

Co-authored-by: Jakob Ackermann <das7pad@outlook.com>
2025-11-29 12:17:44 -05:00

122 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"
}
],
"registrars": [
{
"name": "none",
"type": "-"
}
]
}