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.
178 lines
3.9 KiB
JSON
178 lines
3.9 KiB
JSON
{
|
|
"dns_providers": [
|
|
{
|
|
"name": "Cloudflare",
|
|
"type": "CLOUDFLAREAPI"
|
|
}
|
|
],
|
|
"domains": [
|
|
{
|
|
"dnsProviders": {
|
|
"Cloudflare": -1
|
|
},
|
|
"meta": {
|
|
"dnscontrol_nameraw": "domain.tld",
|
|
"dnscontrol_nameunicode": "domain.tld",
|
|
"dnscontrol_uniquename": "domain.tld"
|
|
},
|
|
"name": "domain.tld",
|
|
"records": [
|
|
{
|
|
"filepos": "[line:7:5]",
|
|
"name": "@",
|
|
"target": "127.0.0.1",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:21:5]",
|
|
"name": "@",
|
|
"target": "127.0.0.3",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:8:5]",
|
|
"name": "a",
|
|
"target": "127.0.0.2",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:9:5]",
|
|
"name": "b",
|
|
"target": "c.domain.tld.",
|
|
"ttl": 300,
|
|
"type": "CNAME"
|
|
},
|
|
{
|
|
"filepos": "[line:22:5]",
|
|
"name": "d",
|
|
"target": "127.0.0.4",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:23:5]",
|
|
"name": "e",
|
|
"target": "f.domain.tld.",
|
|
"ttl": 300,
|
|
"type": "CNAME"
|
|
},
|
|
{
|
|
"filepos": "[line:42:5]",
|
|
"name": "ssub",
|
|
"subdomain": "ssub",
|
|
"target": "127.0.0.7",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:43:5]",
|
|
"name": "j.ssub",
|
|
"subdomain": "ssub",
|
|
"target": "127.0.0.8",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:44:5]",
|
|
"name": "k.ssub",
|
|
"subdomain": "ssub",
|
|
"target": "l.ssub.domain.tld.",
|
|
"ttl": 300,
|
|
"type": "CNAME"
|
|
},
|
|
{
|
|
"filepos": "[line:28:5]",
|
|
"name": "ub",
|
|
"subdomain": "ub",
|
|
"target": "127.0.0.5",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:29:5]",
|
|
"name": "g.ub",
|
|
"subdomain": "ub",
|
|
"target": "127.0.0.6",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:30:5]",
|
|
"name": "h.ub",
|
|
"subdomain": "ub",
|
|
"target": "i.ub.domain.tld.",
|
|
"ttl": 300,
|
|
"type": "CNAME"
|
|
}
|
|
],
|
|
"registrar": "Third-Party",
|
|
"uniquename": "domain.tld"
|
|
},
|
|
{
|
|
"dnsProviders": {
|
|
"Cloudflare": -1
|
|
},
|
|
"meta": {
|
|
"dnscontrol_nameraw": "sub.domain.tld",
|
|
"dnscontrol_nameunicode": "sub.domain.tld",
|
|
"dnscontrol_uniquename": "sub.domain.tld"
|
|
},
|
|
"name": "sub.domain.tld",
|
|
"records": [
|
|
{
|
|
"filepos": "[line:13:5]",
|
|
"name": "@",
|
|
"target": "127.0.1.1",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:35:5]",
|
|
"name": "@",
|
|
"target": "127.0.1.3",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:14:5]",
|
|
"name": "aa",
|
|
"target": "127.0.1.2",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:15:5]",
|
|
"name": "bb",
|
|
"target": "cc.sub.domain.tld.",
|
|
"ttl": 300,
|
|
"type": "CNAME"
|
|
},
|
|
{
|
|
"filepos": "[line:36:5]",
|
|
"name": "dd",
|
|
"target": "127.0.1.4",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:37:5]",
|
|
"name": "ee",
|
|
"target": "ff.sub.domain.tld.",
|
|
"ttl": 300,
|
|
"type": "CNAME"
|
|
}
|
|
],
|
|
"registrar": "Third-Party",
|
|
"uniquename": "sub.domain.tld"
|
|
}
|
|
],
|
|
"registrars": [
|
|
{
|
|
"name": "Third-Party",
|
|
"type": "NONE"
|
|
}
|
|
]
|
|
}
|