# Check DNS records

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/domains/dns/check:
    post:
      summary: Check DNS records
      deprecated: true
      description: >
        # Check DNS Records for Domain


        This endpoint allows you to check the DNS records for a specified domain
        to ensure they are correctly configured.


        ## Endpoint


        ## Request Body


        | Name        | Type    | Description |

        |-------------|---------|-------------|

        | `domainIds` | `array` | An array of domain IDs for which DNS records
        should be checked. |


        ## Example Request


        ```json

        {
            "domainIds": ["domainId1", "domainId2"]
        }
      tags:
        - domains
      parameters:
        - name: x-auth-zapmail
          in: header
          description: ''
          required: true
          example: '{{x-auth-zapmail}}'
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example: |-
                {
                    "status": 200,
                    "message": "Dns checked",
                    "data": [
                        {
                            "id": "8d4ea245-715a-403e-be54-3f74ac3924bc",
                            "domain": "abc.com",
                            "spfRecord": false,
                            "dmarcRecords": true,
                            "dkimRecords": false,
                            "mxRecords": true
                        },
                    ]
                }
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: domains
      x-apidog-status: deprecated
      x-run-in-apidog: https://app.apidog.com/web/project/797058/apis/api-13521093-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.zapmail.ai/api
    description: Prod Env
security: []

```
