dnscontrol/pkg/js/parse_tests/006-transforms.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

61 lines
1.4 KiB
JSON

{
"dns_providers": [
{
"name": "Cloudflare",
"type": "CLOUDFLAREAPI"
}
],
"domains": [
{
"dnsProviders": {
"Cloudflare": -1
},
"meta": {
"dnscontrol_nameraw": "foo.com",
"dnscontrol_nameunicode": "foo.com",
"dnscontrol_uniquename": "foo.com"
},
"name": "foo.com",
"records": [
{
"filepos": "[line:18:5]",
"meta": {
"transform": "0.0.0.0 ~ 1.1.1.0 ~ 2.2.2.2 ~ ; 1.1.1.1 ~ 2.2.2.2 ~ ~ 3.3.3.3,4.4.4.4,5.5.5.5"
},
"name": "@",
"target": "3.3.3.3",
"ttl": 300,
"type": "A"
},
{
"filepos": "[line:18:5]",
"meta": {
"transform": "0.0.0.0 ~ 1.1.1.0 ~ 2.2.2.2 ~ ; 1.1.1.1 ~ 2.2.2.2 ~ ~ 3.3.3.3,4.4.4.4,5.5.5.5"
},
"name": "@",
"target": "4.4.4.4",
"ttl": 300,
"type": "A"
},
{
"filepos": "[line:18:5]",
"meta": {
"transform": "0.0.0.0 ~ 1.1.1.0 ~ 2.2.2.2 ~ ; 1.1.1.1 ~ 2.2.2.2 ~ ~ 3.3.3.3,4.4.4.4,5.5.5.5"
},
"name": "@",
"target": "5.5.5.5",
"ttl": 300,
"type": "A"
}
],
"registrar": "Third-Party",
"uniquename": "foo.com"
}
],
"registrars": [
{
"name": "Third-Party",
"type": "NONE"
}
]
}