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.
271 lines
6.1 KiB
JSON
271 lines
6.1 KiB
JSON
{
|
|
"dns_providers": [
|
|
{
|
|
"name": "otherconfig",
|
|
"type": "CLOUDFLAREAPI"
|
|
},
|
|
{
|
|
"name": "Cloudflare",
|
|
"type": "CLOUDFLAREAPI"
|
|
},
|
|
{
|
|
"name": "bind",
|
|
"type": "BIND"
|
|
}
|
|
],
|
|
"domains": [
|
|
{
|
|
"dnsProviders": {
|
|
"otherconfig": -1
|
|
},
|
|
"meta": {
|
|
"dnscontrol_nameraw": "example.com",
|
|
"dnscontrol_nameunicode": "example.com",
|
|
"dnscontrol_uniquename": "example.com"
|
|
},
|
|
"name": "example.com",
|
|
"records": [
|
|
{
|
|
"filepos": "[line:7:5]",
|
|
"name": "main",
|
|
"target": "3.3.3.3",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:19:5]",
|
|
"name": "www",
|
|
"target": "33.33.33.33",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
}
|
|
],
|
|
"registrar": "Third-Party",
|
|
"uniquename": "example.com"
|
|
},
|
|
{
|
|
"dnsProviders": {
|
|
"Cloudflare": -1
|
|
},
|
|
"meta": {
|
|
"dnscontrol_nameraw": "example.com",
|
|
"dnscontrol_nameunicode": "example.com",
|
|
"dnscontrol_tag": "inside",
|
|
"dnscontrol_uniquename": "example.com!inside"
|
|
},
|
|
"name": "example.com",
|
|
"records": [
|
|
{
|
|
"filepos": "[line:11:5]",
|
|
"name": "main",
|
|
"target": "1.1.1.1",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:23:5]",
|
|
"name": "main",
|
|
"target": "11.11.11.11",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
}
|
|
],
|
|
"registrar": "Third-Party",
|
|
"tag": "inside",
|
|
"uniquename": "example.com!inside"
|
|
},
|
|
{
|
|
"dnsProviders": {
|
|
"bind": -1
|
|
},
|
|
"meta": {
|
|
"dnscontrol_nameraw": "example.com",
|
|
"dnscontrol_nameunicode": "example.com",
|
|
"dnscontrol_tag": "outside",
|
|
"dnscontrol_uniquename": "example.com!outside"
|
|
},
|
|
"name": "example.com",
|
|
"records": [
|
|
{
|
|
"filepos": "[line:15:5]",
|
|
"name": "main",
|
|
"target": "8.8.8.8",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
}
|
|
],
|
|
"registrar": "Third-Party",
|
|
"tag": "outside",
|
|
"uniquename": "example.com!outside"
|
|
},
|
|
{
|
|
"dnsProviders": {
|
|
"bind": -1
|
|
},
|
|
"meta": {
|
|
"dnscontrol_nameraw": "example.net",
|
|
"dnscontrol_nameunicode": "example.net",
|
|
"dnscontrol_uniquename": "example.net"
|
|
},
|
|
"name": "example.net",
|
|
"records": [
|
|
{
|
|
"filepos": "[line:31:5]",
|
|
"name": "main",
|
|
"target": "203.0.113.12",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:27:5]",
|
|
"name": "www",
|
|
"target": "203.0.113.1",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
}
|
|
],
|
|
"registrar": "Third-Party",
|
|
"uniquename": "example.net"
|
|
},
|
|
{
|
|
"dnsProviders": {
|
|
"Cloudflare": -1
|
|
},
|
|
"meta": {
|
|
"dnscontrol_nameraw": "example.net",
|
|
"dnscontrol_nameunicode": "example.net",
|
|
"dnscontrol_tag": "inside",
|
|
"dnscontrol_uniquename": "example.net!inside"
|
|
},
|
|
"name": "example.net",
|
|
"records": [
|
|
{
|
|
"filepos": "[line:36:5]",
|
|
"name": "main",
|
|
"target": "192.0.2.1",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:31:5]",
|
|
"name": "main",
|
|
"target": "203.0.113.12",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:27:5]",
|
|
"name": "www",
|
|
"target": "203.0.113.1",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
}
|
|
],
|
|
"registrar": "Third-Party",
|
|
"tag": "inside",
|
|
"uniquename": "example.net!inside"
|
|
},
|
|
{
|
|
"dnsProviders": {
|
|
"bind": -1
|
|
},
|
|
"meta": {
|
|
"dnscontrol_nameraw": "example.net",
|
|
"dnscontrol_nameunicode": "example.net",
|
|
"dnscontrol_tag": "outside",
|
|
"dnscontrol_uniquename": "example.net!outside"
|
|
},
|
|
"name": "example.net",
|
|
"records": [
|
|
{
|
|
"filepos": "[line:41:5]",
|
|
"name": "main",
|
|
"target": "203.0.113.1",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:31:5]",
|
|
"name": "main",
|
|
"target": "203.0.113.12",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:27:5]",
|
|
"name": "www",
|
|
"target": "203.0.113.1",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
}
|
|
],
|
|
"registrar": "Third-Party",
|
|
"tag": "outside",
|
|
"uniquename": "example.net!outside"
|
|
},
|
|
{
|
|
"dnsProviders": {
|
|
"bind": -1
|
|
},
|
|
"meta": {
|
|
"dnscontrol_nameraw": "empty.example.net",
|
|
"dnscontrol_nameunicode": "empty.example.net",
|
|
"dnscontrol_uniquename": "empty.example.net"
|
|
},
|
|
"name": "empty.example.net",
|
|
"records": [
|
|
{
|
|
"filepos": "[line:49:5]",
|
|
"name": "main",
|
|
"target": "203.0.113.22",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:45:5]",
|
|
"name": "www",
|
|
"target": "203.0.113.2",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
}
|
|
],
|
|
"registrar": "Third-Party",
|
|
"uniquename": "empty.example.net"
|
|
},
|
|
{
|
|
"dnsProviders": {
|
|
"bind": -1
|
|
},
|
|
"meta": {
|
|
"dnscontrol_nameraw": "example-b.net",
|
|
"dnscontrol_nameunicode": "example-b.net",
|
|
"dnscontrol_uniquename": "example-b.net!"
|
|
},
|
|
"name": "example-b.net",
|
|
"records": [
|
|
{
|
|
"filepos": "[line:57:5]",
|
|
"name": "main",
|
|
"target": "203.0.113.12",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
},
|
|
{
|
|
"filepos": "[line:53:5]",
|
|
"name": "www",
|
|
"target": "203.0.113.1",
|
|
"ttl": 300,
|
|
"type": "A"
|
|
}
|
|
],
|
|
"registrar": "Third-Party",
|
|
"uniquename": "example-b.net!"
|
|
}
|
|
],
|
|
"registrars": [
|
|
{
|
|
"name": "Third-Party",
|
|
"type": "NONE"
|
|
}
|
|
]
|
|
}
|