Check correctness of DNS entries for the cluster's domain
Returns results of the last DNS check, verifying the validity of DNS configuration for cluster's domain. Unless 'forceCheck' flag is set, the results may be cached.
Both Oneprovider and Onezone return field domain for checking if cluster's
domain can be resolved.
In Oneprovider there may be additional field oneS3Subdomain for checking if
OneS3 domain can be resolved if said service is enabled.
In Onezone there is additional field dnsZone for checking whether DNS zone management
for the Onezone's domain has been delegated to Onezone server (SOA and NS records)
allowing for subdomain delegation.
If the cluster is configured with an IP instead of a domain no results are returned.
Settings used for the check, ie. DNS servers used can be modified using the dns_check/configuration endpoint.
Query parameters
| Parameter | Type & Description |
|---|---|
| forceCheck | boolean If true the DNS check cache is overridden and check is performed during handling of the request. |
Request Examples
onepanel-rest-cli -u onepanel:$PASSPHRASE checkDns --host https://$PANEL_HOST:9443Responses
The DNS check summary.
| Property | Type & Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
domain object (DnsCheckResult) Describes results obtained from a DNS check. DNS check involves querying DNS servers to ensure publicly visible records match expected values.
| |||||||||
oneS3Subdomain object (DnsCheckResult) Describes results obtained from a DNS check. DNS check involves querying DNS servers to ensure publicly visible records match expected values.
| |||||||||
dnsZone object (DnsCheckResult) Describes results obtained from a DNS check. DNS check involves querying DNS servers to ensure publicly visible records match expected values.
| |||||||||
timestamp string Time at which the DNS check was perfmormed. Formatted according to ISO 8601. | |||||||||
Example
{
"timestamp": "2018-10-20T21:39:37",
"domain": {
"summary": "ok",
"expected": [
"10.11.12.13"
],
"got": [
"10.11.12.13"
]
},
"dnsZone": {
"summary": "bad_records",
"expected": [
"10.11.12.13"
],
"got": [
"100.100.102.102"
]
}
}Unauthorized request.
Forbidden request.
Cluster not yet deployed.
Internal server error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object (ErrorDetails) Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}