dnscontrol/pkg/js/parse_tests/026-azure-alias.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

58 lines
1.3 KiB
JSON

{
"dns_providers": [],
"domains": [
{
"dnsProviders": {},
"meta": {
"dnscontrol_nameraw": "foo.com",
"dnscontrol_nameunicode": "foo.com",
"dnscontrol_uniquename": "foo.com"
},
"name": "foo.com",
"records": [
{
"azure_alias": {
"type": "AAAA"
},
"filepos": "[line:3:5]",
"meta": {
"orig_custom_type": "AZURE_ALIAS"
},
"name": "aaaatest",
"target": "foo.com.",
"ttl": 300,
"type": "AZURE_ALIAS"
},
{
"azure_alias": {
"type": "A"
},
"filepos": "[line:2:5]",
"meta": {
"orig_custom_type": "AZURE_ALIAS"
},
"name": "atest",
"target": "foo.com.",
"ttl": 300,
"type": "AZURE_ALIAS"
},
{
"azure_alias": {
"type": "CNAME"
},
"filepos": "[line:4:5]",
"meta": {
"orig_custom_type": "AZURE_ALIAS"
},
"name": "cnametest",
"target": "foo.com.",
"ttl": 300,
"type": "AZURE_ALIAS"
}
],
"registrar": "none",
"uniquename": "foo.com"
}
],
"registrars": []
}