dnscontrol/pkg/js/parse_tests/054-b3487_d_extend_rev.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

125 lines
3 KiB
JSON

{
"dns_providers": [
{
"name": "bind",
"type": "CLOUDFLAREAPI"
}
],
"domains": [
{
"dnsProviders": {
"bind": -1
},
"meta": {
"dnscontrol_nameraw": "6.10.in-addr.arpa",
"dnscontrol_nameunicode": "6.10.in-addr.arpa",
"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": "-"
}
]
}