---
title: "Verify domain ownership via DNS"
method: POST
path: "/DCV/check_domains_via_dns"
tags: ["DCV", "Verify Domain Ownership"]
---

# Verify domain ownership via DNS

`POST /DCV/check_domains_via_dns`

This function checks whether the account's domains can pass Domain Control Validation (DCV) via a DNS request.

## Query parameters

- `domain` string, domain, required

## Response `200`

HTTP Request was successful.

- object
  - `apiversion` integer — The version of the API.
  - `func` string — The name of the method called.
  - `module` string — The name of the module called.
  - `result` object
    - `data` object[] — An array of objects containing the results from each `domain` parameter’s DCV check. **Note:** The function returns the results from the `domain` parameter in the same order in which you called them.
      - `dcv_string` string — The expected value of the queried DNS record.
      - `domain` string, domain — The domain that the system verified.
      - `failure_reason` string — A message that contains the reason why the DCV check failed. **Note:** If the server fails to update the DNS zone, the system returns this value.
      - `query_results` string[] — The strings that the DNS query returned. This array may be empty. **Note:** If the server fails to update the DNS zone, the system returns the `failure_reason` value.
      - `succeeded` 1 | 0 — Whether the DCV check succeeded. - `1` - At least one of the `query_results` values equals the `dcv_string` value. - `0` - None of the `query_results` values equal the `dcv_string` value.
      - `zone` string, domain — The altered and queried DNS zone name.
    - `errors` string[], nullable — List of errors if the API failed.
    - `messages` string[], nullable — List of messages generated by the API.
    - `metadata` object
      - `transformed` 1 — Post-processing may have transformed the data.
    - `status` 0 | 1 — - 1 - Success - 0 - Failed: Check the errors field for more details.
    - `warnings` string[], nullable — List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running a API.

---

[API](https://skmtc.net/cpanel/apis/cpanel-uapi.md) · [All operations](https://skmtc.net/cpanel/apis/cpanel-uapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cpanel/cpanel-uapi/revisions/632e2f8e6d04/schema)
