dnscontrol/pkg/js/parse_tests/058-ignore-external-dns.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.6 KiB
JSON

{
"dns_providers": [],
"domains": [
{
"dnsProviders": {},
"ignore_external_dns": true,
"meta": {
"dnscontrol_nameraw": "extdns-default.com",
"dnscontrol_nameunicode": "extdns-default.com",
"dnscontrol_uniquename": "extdns-default.com"
},
"name": "extdns-default.com",
"records": [],
"registrar": "none",
"uniquename": "extdns-default.com"
},
{
"dnsProviders": {},
"external_dns_prefix": "extdns-",
"ignore_external_dns": true,
"meta": {
"dnscontrol_nameraw": "extdns-custom.com",
"dnscontrol_nameunicode": "extdns-custom.com",
"dnscontrol_uniquename": "extdns-custom.com"
},
"name": "extdns-custom.com",
"records": [],
"registrar": "none",
"uniquename": "extdns-custom.com"
},
{
"dnsProviders": {},
"ignore_external_dns": true,
"meta": {
"dnscontrol_nameraw": "extdns-combined.com",
"dnscontrol_nameunicode": "extdns-combined.com",
"dnscontrol_uniquename": "extdns-combined.com"
},
"name": "extdns-combined.com",
"records": [
{
"filepos": "[line:12:5]",
"name": "api",
"target": "www.extdns-combined.com.",
"ttl": 300,
"type": "CNAME"
},
{
"filepos": "[line:11:5]",
"name": "www",
"target": "1.2.3.4",
"ttl": 300,
"type": "A"
}
],
"registrar": "none",
"uniquename": "extdns-combined.com"
}
],
"registrars": []
}