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. 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://$HOST:9443Responses
The DNS check results.
| 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.
| |||||||||
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 Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}