dnscontrol/pkg/js/parse_tests/055-b3550-ipv6ptr.json
Tom Limoncelli 0ae4acc3e4
BUGFIX: BIND %D not working after v4.28.0 (#3900)
# Issue

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

After the v4.28.0 upgrade, the `%D` option in BIND's `"filenameformat"`
option no longer works (returns "") when reading the zonefile (but it
works for writing to one!). As a result, "push" always re-creates the
zonefile even if there are no changes.

# Resolution

Fix `%D` in the zone reading code.
2025-12-08 10:32:07 -05:00

82 lines
2.1 KiB
JSON

{
"dns_providers": [
{
"name": "bind",
"type": "BIND"
}
],
"domains": [
{
"dnsProviders": {
"bind": -1
},
"meta": {
"dnscontrol_nameraw": "d.c.b.a.1.1.0.2.ip6.arpa",
"dnscontrol_nameunicode": "d.c.b.a.1.1.0.2.ip6.arpa",
"dnscontrol_uniquename": "d.c.b.a.1.1.0.2.ip6.arpa"
},
"name": "d.c.b.a.1.1.0.2.ip6.arpa",
"records": [
{
"filepos": "[line:5:5]",
"name": "1.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",
"target": "host11.example.com.",
"ttl": 300,
"type": "PTR"
},
{
"filepos": "[line:6:5]",
"name": "2.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",
"target": "host22.example.com.",
"ttl": 300,
"type": "PTR"
}
],
"registrar": "none",
"uniquename": "d.c.b.a.1.1.0.2.ip6.arpa"
},
{
"dnsProviders": {
"bind": -1
},
"meta": {
"dnscontrol_nameraw": "8.b.d.0.1.0.0.2.ip6.arpa",
"dnscontrol_nameunicode": "8.b.d.0.1.0.0.2.ip6.arpa",
"dnscontrol_uniquename": "8.b.d.0.1.0.0.2.ip6.arpa"
},
"name": "8.b.d.0.1.0.0.2.ip6.arpa",
"records": [
{
"filepos": "[line:10:5]",
"name": "1.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",
"target": "server11.example.com.",
"ttl": 300,
"type": "PTR"
},
{
"filepos": "[line:11:5]",
"name": "2.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",
"target": "server22.example.com.",
"ttl": 300,
"type": "PTR"
},
{
"filepos": "[line:15:5]",
"name": "d.c.b.a.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",
"subdomain": "d.c.b.a.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",
"target": "abcd.example.com.",
"ttl": 300,
"type": "PTR"
}
],
"registrar": "none",
"uniquename": "8.b.d.0.1.0.0.2.ip6.arpa"
}
],
"registrars": [
{
"name": "none",
"type": "-"
}
]
}