This function checks whether the account's domains can pass Domain Control Validation (DCV) via a DNS request.
uapi --output=jsonpretty \ --user=username \ DCV \ check_domains_via_dns \ domain='example.com'
{- "apiversion": 3,
- "func": "check_domains_via_dns",
- "module": "DCV",
- "result": {
- "data": [
- {
- "dcv_string": "_dcv-test-record=wsWRlG9IsG7KNnLdIsx9Oz2oTw8m5q0imRR9L6LnDBz14sZelvDHqrJyJc6LA0DY",
- "domain": "example.com",
- "failure_reason": "The DNS query to _dcv-test-record.example2.org for the DCV challenge returned no TXT record that matches the value _dcv-test-record=wRUFPTN1DskKDG8KHfYM_5cQF5QUGWq1_A2ovO8rKsrIYO_HilAjsQABFCrbJkLX.",
- "query_results": [
- "_dcv-test-record=wsWRlG9IsG7KNnLdIsx9Oz2oTw8m5q0imRR9L6LnDBz14sZelvDHqrJyJc6LA0DY"
], - "succeeded": 1,
- "zone": "example.com"
}
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}