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.
117 lines
2.4 KiB
JSON
117 lines
2.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:6:5]",
|
|
"name": "@",
|
|
"target": "10.1.1.1",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:7:5]",
|
|
"name": "www",
|
|
"target": "10.2.2.2",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
}
|
|
],
|
|
"registrar": "Third-Party",
|
|
"uniquename": "foo.com"
|
|
},
|
|
{
|
|
"dnsProviders": {
|
|
"Cloudflare": -1
|
|
},
|
|
"meta": {
|
|
"dnscontrol_nameraw": "bar.foo.com",
|
|
"dnscontrol_nameunicode": "bar.foo.com",
|
|
"dnscontrol_uniquename": "bar.foo.com"
|
|
},
|
|
"name": "bar.foo.com",
|
|
"records": [
|
|
{
|
|
"filepos": "[line:10:5]",
|
|
"name": "@",
|
|
"target": "10.3.3.3",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:11:5]",
|
|
"name": "www",
|
|
"target": "10.4.4.4",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
}
|
|
],
|
|
"registrar": "Third-Party",
|
|
"uniquename": "bar.foo.com"
|
|
},
|
|
{
|
|
"dnsProviders": {
|
|
"Cloudflare": -1
|
|
},
|
|
"meta": {
|
|
"dnscontrol_nameraw": "foo.edu",
|
|
"dnscontrol_nameunicode": "foo.edu",
|
|
"dnscontrol_uniquename": "foo.edu"
|
|
},
|
|
"name": "foo.edu",
|
|
"records": [
|
|
{
|
|
"filepos": "[line:16:5]",
|
|
"name": "@",
|
|
"target": "10.5.5.5",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:20:5]",
|
|
"name": "more1",
|
|
"target": "10.7.7.7",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:21:5]",
|
|
"name": "more2",
|
|
"target": "10.8.8.8",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:17:5]",
|
|
"name": "www",
|
|
"target": "10.6.6.6",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
}
|
|
],
|
|
"registrar": "Third-Party",
|
|
"uniquename": "foo.edu"
|
|
}
|
|
],
|
|
"registrars": [
|
|
{
|
|
"name": "Third-Party",
|
|
"type": "NONE"
|
|
}
|
|
]
|
|
}
|