mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2026-01-03 06:44:18 +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.
122 lines
2.7 KiB
JSON
122 lines
2.7 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:9:5]",
|
|
"name": "a",
|
|
"target": "b.domain.tld.",
|
|
"ttl": 300,
|
|
"type": "CNAME"
|
|
},
|
|
{
|
|
"filepos": "[line:12:5]",
|
|
"name": "aaa",
|
|
"target": "127.0.0.3",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:13:5]",
|
|
"name": "c",
|
|
"target": "d.domain.tld.",
|
|
"ttl": 300,
|
|
"type": "CNAME"
|
|
},
|
|
{
|
|
"filepos": "[line:25:5]",
|
|
"name": "sub",
|
|
"subdomain": "sub",
|
|
"target": "127.0.0.7",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:16:5]",
|
|
"name": "bbb.sub",
|
|
"subdomain": "sub",
|
|
"target": "127.0.0.4",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:17:5]",
|
|
"name": "ccc.sub",
|
|
"subdomain": "sub",
|
|
"target": "127.0.0.5",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:18:5]",
|
|
"name": "e.sub",
|
|
"subdomain": "sub",
|
|
"target": "f.sub.domain.tld.",
|
|
"ttl": 300,
|
|
"type": "CNAME"
|
|
},
|
|
{
|
|
"filepos": "[line:26:5]",
|
|
"name": "i.sub",
|
|
"subdomain": "sub",
|
|
"target": "j.sub.domain.tld.",
|
|
"ttl": 300,
|
|
"type": "CNAME"
|
|
},
|
|
{
|
|
"filepos": "[line:21:5]",
|
|
"name": "ddd.sub.sub",
|
|
"subdomain": "sub.sub",
|
|
"target": "127.0.0.6",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:22:5]",
|
|
"name": "g.sub.sub",
|
|
"subdomain": "sub.sub",
|
|
"target": "h.sub.sub.domain.tld.",
|
|
"ttl": 300,
|
|
"type": "CNAME"
|
|
},
|
|
{
|
|
"filepos": "[line:8:5]",
|
|
"name": "www",
|
|
"target": "127.0.0.2",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
}
|
|
],
|
|
"registrar": "Third-Party",
|
|
"uniquename": "domain.tld"
|
|
}
|
|
],
|
|
"registrars": [
|
|
{
|
|
"name": "Third-Party",
|
|
"type": "NONE"
|
|
}
|
|
]
|
|
}
|