mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-09-20 14:56:20 +08:00
063d550816
* js_test.go: Do a zonefile test if $TESTNAME/parse_tests/{zonefile} exists. * Add parse_tests zone files for all the tests that make sense. * js_test.go: Addd the test datafile when displaying failures. * 007-importTransformTTL.js: Was referring to a non-existent domain. * 012-duration.js: Had duplicate DNS records. * 029-dextendsub.js: Move CF-related tests to separate test. * validate.go: Report non-existent domains as an error. * cloudflareProvider.go: newCloudflare should not talk to the API.
48 lines
916 B
JSON
48 lines
916 B
JSON
{
|
|
"dns_providers": [
|
|
{
|
|
"name": "Cloudflare",
|
|
"type": "CLOUDFLAREAPI"
|
|
}
|
|
],
|
|
"domains": [
|
|
{
|
|
"dnsProviders": {
|
|
"Cloudflare": -1
|
|
},
|
|
"name": "foo.com",
|
|
"records": [
|
|
{
|
|
"name": "test1.foo.com.sub",
|
|
"subdomain": "sub",
|
|
"target": "10.2.3.1",
|
|
"type": "A"
|
|
},
|
|
{
|
|
"name": "test2.foo.com.sub",
|
|
"subdomain": "sub",
|
|
"target": "10.2.3.2",
|
|
"type": "A"
|
|
},
|
|
{
|
|
"name": "@",
|
|
"target": "test1.foo.com,https://goo.com/$1",
|
|
"type": "CF_REDIRECT"
|
|
},
|
|
{
|
|
"name": "@",
|
|
"target": "test2.foo.com,https://goo.com/$1",
|
|
"type": "CF_TEMP_REDIRECT"
|
|
}
|
|
],
|
|
"registrar": "Third-Party"
|
|
}
|
|
],
|
|
"registrars": [
|
|
{
|
|
"name": "Third-Party",
|
|
"type": "NONE"
|
|
}
|
|
]
|
|
}
|