mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-13 10:58:17 +08:00
b275286dae
* fix get-zones code block indentation * extend D_EXTEND to handle subdomains * fix targets: make absolute incl. subdomain where necessary * clarify subdomain target test (not IP && not fqdn) * Add parse_tests for D and D_EXTEND * _getDomainObject: examine all domains * human readable form * consistent test IP addresses * Improve docs and formatting * propagate subdomain to canonicalisation * en-US spelling * rm extraneous console.log * ignore subdomain for CF_REDIRECT * clarify D_EXTEND doc re. CF_REDIRECT * rm extraneous linebreak * _getDomainObject: examine all domains * human readable form * consistent test IP addresses * propagate subdomain to canonicalisation * en-US spelling * rm extraneous console.log * ignore subdomain for CF_REDIRECT * clarify D_EXTEND doc re. CF_REDIRECT * rm extraneous linebreak * GANDI_V5: Use github.com/go-gandi/go-gandi, not github.com/tiramiseb/go-gandi (#883) * DOCUMENTATION: Fix error in CNAME.md (#877) The current example `CNAME("def", "test.subdomain"), // def.example.com -> test.subdomain.example.com` is invalid (correctly raises a validation error, "ERROR: in CNAME def.example.com: target (test.subdomain) must end with a (.)") * typos, fmt; example syntax fixes and real output * formatting; re-add lost comment * RecordConfig subdomain should be nullable * providers/cscglobal/api.go: Fix fmt string * More tests and docs * go generate Co-authored-by: Ben L <47653825+ad8-bdl@users.noreply.github.com>
83 lines
1.4 KiB
JSON
83 lines
1.4 KiB
JSON
{
|
|
"registrars": [
|
|
{
|
|
"name": "Third-Party",
|
|
"type": "NONE"
|
|
}
|
|
],
|
|
"dns_providers": [
|
|
{
|
|
"name": "Cloudflare",
|
|
"type": "CLOUDFLAREAPI"
|
|
}
|
|
],
|
|
"domains": [
|
|
{
|
|
"name": "foo.com",
|
|
"registrar": "Third-Party",
|
|
"dnsProviders": {
|
|
"Cloudflare": -1
|
|
},
|
|
"records": [
|
|
{
|
|
"type": "A",
|
|
"name": "@",
|
|
"target": "10.1.1.1"
|
|
},
|
|
{
|
|
"type": "A",
|
|
"name": "www",
|
|
"target": "10.2.2.2"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "bar.foo.com",
|
|
"registrar": "Third-Party",
|
|
"dnsProviders": {
|
|
"Cloudflare": -1
|
|
},
|
|
"records": [
|
|
{
|
|
"type": "A",
|
|
"name": "@",
|
|
"target": "10.3.3.3"
|
|
},
|
|
{
|
|
"type": "A",
|
|
"name": "www",
|
|
"target": "10.4.4.4"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "foo.edu",
|
|
"registrar": "Third-Party",
|
|
"dnsProviders": {
|
|
"Cloudflare": -1
|
|
},
|
|
"records": [
|
|
{
|
|
"type": "A",
|
|
"name": "@",
|
|
"target": "10.5.5.5"
|
|
},
|
|
{
|
|
"type": "A",
|
|
"name": "www",
|
|
"target": "10.6.6.6"
|
|
},
|
|
{
|
|
"type": "A",
|
|
"name": "more1",
|
|
"target": "10.7.7.7"
|
|
},
|
|
{
|
|
"type": "A",
|
|
"name": "more2",
|
|
"target": "10.8.8.8"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|