mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-12-09 13:46:07 +08:00
# 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.
67 lines
1.5 KiB
JSON
67 lines
1.5 KiB
JSON
{
|
|
"dns_providers": [],
|
|
"domains": [
|
|
{
|
|
"dnsProviders": {},
|
|
"meta": {
|
|
"dnscontrol_nameraw": "foo.com",
|
|
"dnscontrol_nameunicode": "foo.com",
|
|
"dnscontrol_uniquename": "foo.com"
|
|
},
|
|
"name": "foo.com",
|
|
"records": [
|
|
{
|
|
"filepos": "[line:6:5]",
|
|
"name": "_ntp._udp",
|
|
"srvport": 1,
|
|
"target": "zeros.foo.com.",
|
|
"ttl": 300,
|
|
"type": "SRV"
|
|
},
|
|
{
|
|
"filepos": "[line:2:5]",
|
|
"name": "_ntp._udp",
|
|
"srvport": 123,
|
|
"srvpriority": 1,
|
|
"srvweight": 100,
|
|
"target": "one.foo.com.",
|
|
"ttl": 300,
|
|
"type": "SRV"
|
|
},
|
|
{
|
|
"filepos": "[line:3:5]",
|
|
"name": "_ntp._udp",
|
|
"srvport": 123,
|
|
"srvpriority": 2,
|
|
"srvweight": 100,
|
|
"target": "two.foo.com.",
|
|
"ttl": 300,
|
|
"type": "SRV"
|
|
},
|
|
{
|
|
"filepos": "[line:4:5]",
|
|
"name": "_ntp._udp",
|
|
"srvport": 123,
|
|
"srvpriority": 3,
|
|
"srvweight": 100,
|
|
"target": "localhost.foo.com.",
|
|
"ttl": 300,
|
|
"type": "SRV"
|
|
},
|
|
{
|
|
"filepos": "[line:5:5]",
|
|
"name": "_ntp._udp",
|
|
"srvport": 123,
|
|
"srvpriority": 4,
|
|
"srvweight": 100,
|
|
"target": "three.example.com.",
|
|
"ttl": 300,
|
|
"type": "SRV"
|
|
}
|
|
],
|
|
"registrar": "none",
|
|
"uniquename": "foo.com"
|
|
}
|
|
],
|
|
"registrars": []
|
|
}
|