mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-12-09 21:55:57 +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.
84 lines
1.8 KiB
JSON
84 lines
1.8 KiB
JSON
{
|
|
"dns_providers": [
|
|
{
|
|
"name": "bind",
|
|
"type": "BIND"
|
|
}
|
|
],
|
|
"domains": [
|
|
{
|
|
"dnsProviders": {
|
|
"bind": -1
|
|
},
|
|
"meta": {
|
|
"dnscontrol_nameraw": "8.9.in-addr.arpa",
|
|
"dnscontrol_nameunicode": "8.9.in-addr.arpa",
|
|
"dnscontrol_uniquename": "8.9.in-addr.arpa"
|
|
},
|
|
"name": "8.9.in-addr.arpa",
|
|
"records": [
|
|
{
|
|
"filepos": "[line:8:5]",
|
|
"name": "1.2",
|
|
"target": "ns1.example.com.",
|
|
"ttl": 300,
|
|
"type": "NS"
|
|
},
|
|
{
|
|
"filepos": "[line:11:5]",
|
|
"name": "6.7",
|
|
"subdomain": "7",
|
|
"target": "ns2.example.org.",
|
|
"ttl": 300,
|
|
"type": "NS"
|
|
}
|
|
],
|
|
"registrar": "none",
|
|
"uniquename": "8.9.in-addr.arpa"
|
|
},
|
|
{
|
|
"dnsProviders": {
|
|
"bind": -1
|
|
},
|
|
"meta": {
|
|
"dnscontrol_nameraw": "example.com",
|
|
"dnscontrol_nameunicode": "example.com",
|
|
"dnscontrol_uniquename": "example.com"
|
|
},
|
|
"name": "example.com",
|
|
"records": [
|
|
{
|
|
"filepos": "[line:17:5]",
|
|
"name": "foo",
|
|
"target": "ns1.fooexample.com.",
|
|
"ttl": 300,
|
|
"type": "NS"
|
|
},
|
|
{
|
|
"filepos": "[line:20:5]",
|
|
"name": "more.lego",
|
|
"subdomain": "lego",
|
|
"target": "ns1.example.com.",
|
|
"ttl": 300,
|
|
"type": "NS"
|
|
},
|
|
{
|
|
"filepos": "[line:21:5]",
|
|
"name": "short.lego",
|
|
"subdomain": "lego",
|
|
"target": "ns1.lego.example.com.",
|
|
"ttl": 300,
|
|
"type": "NS"
|
|
}
|
|
],
|
|
"registrar": "none",
|
|
"uniquename": "example.com"
|
|
}
|
|
],
|
|
"registrars": [
|
|
{
|
|
"name": "none",
|
|
"type": "NONE"
|
|
}
|
|
]
|
|
}
|