# DANE Record Validator API

> DANE Record Validator validates DANE/TLSA DNS records used for certificate authentication, providing security analysis and best practice recommendations.

**Endpoint:** `POST https://api.apiverve.com/v1/danevalidator`  
**Category:** Security  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/danevalidator

## Overview

DANE Record Validator checks a DANE TLSA record before you publish it in DNS. Paste a full zone-file line or just the usage, selector, matching type and certificate data, and get back each field parsed out, along with checks on the certificate data's hexadecimal format and on its length for the chosen hash. Mistakes such as a truncated SHA-256 digest or an impossible usage value are caught before they break TLS for mail or web clients that enforce DANE.

Mail server operators use it when setting up DANE for SMTP, DNS and security teams use it to review TLSA records in change requests, and hosting tools use it to validate records customers enter before saving them.

The Free plan returns the parsed record, including port, protocol, hostname, TTL, class and the three numeric fields, plus the validation results. Paid plans add a plain-language interpretation of the usage, selector and matching type, a security level for the combination, and a recommendation that points toward the commonly advised DANE-EE, SPKI, SHA-256 setup.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl -X POST "https://api.apiverve.com/v1/danevalidator" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"record":"_443._tcp.example.com. 86400 IN TLSA 3 1 1 0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"}'
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `record` | string | Yes | The DANE/TLSA record string to validate |

## Response fields

- `raw_record` — string · Original DANE/TLSA record string input
- `parsed` — object
  - `parsed.name` — string · Fully qualified domain name from TLSA record
  - `parsed.port` — number · Port number specified in TLSA record
  - `parsed.protocol` — string · Protocol type (tcp or udp) from record
  - `parsed.hostname` — string · Extracted hostname without service prefix
  - `parsed.ttl` — number · Time to live value in seconds
  - `parsed.class` — string · DNS class designation (typically IN)
  - `parsed.usage` — number · TLSA usage field value (0-3)
  - `parsed.selector` — number · TLSA selector field value (0-1)
  - `parsed.matching` — number · TLSA matching type field value (0-3)
  - `parsed.certificate_data` — string · Hexadecimal certificate association data
  - `parsed.certificate_data_length` — number · Length of certificate data in characters
- `interpretation` — object · Detailed interpretation and security analysis of DANE record · (premium)
  - `interpretation.usage` — object · (premium)
    - `interpretation.usage.name` — string · Human-readable TLSA usage type name · (premium)
    - `interpretation.usage.description` — string · Short description of usage type meaning · (premium)
    - `interpretation.usage.full_description` — string · Comprehensive explanation of usage field · (premium)
  - `interpretation.selector` — object · (premium)
    - `interpretation.selector.name` — string · Human-readable selector type designation · (premium)
    - `interpretation.selector.description` — string · Short description of selector meaning · (premium)
    - `interpretation.selector.full_description` — string · Detailed explanation of selector type · (premium)
  - `interpretation.matching` — object · (premium)
    - `interpretation.matching.name` — string · Human-readable matching algorithm name · (premium)
    - `interpretation.matching.description` — string · Short description of matching algorithm · (premium)
    - `interpretation.matching.full_description` — string · Detailed explanation of matching algorithm · (premium)
  - `interpretation.security_level` — string · Security assessment of configuration level · (premium)
  - `interpretation.recommendation` — string · Expert security recommendation for configuration · (premium)
- `validation` — object
  - `validation.is_valid` — boolean · Overall validation result for DANE record
  - `validation.certificate_data_format` — string · Certificate data hexadecimal format validation result
  - `validation.certificate_data_length_valid` — boolean · Validation status of certificate data length

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "raw_record": "_443._tcp.example.com. 86400 IN TLSA 3 1 1 0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
    "parsed": {
      "name": "_443._tcp.example.com.",
      "port": 443,
      "protocol": "tcp",
      "hostname": "example.com",
      "ttl": 86400,
      "class": "IN",
      "usage": 3,
      "selector": 1,
      "matching": 1,
      "certificate_data": "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
      "certificate_data_length": 64
    },
    "interpretation": {
      "usage": {
        "name": "DANE-EE",
        "description": "Domain-issued certificate",
        "full_description": "Certificate must exactly match the provided association data (most common)"
      },
      "selector": {
        "name": "SPKI",
        "description": "SubjectPublicKeyInfo",
        "full_description": "Match against the Subject Public Key Info (recommended)"
      },
      "matching": {
        "name": "SHA-256",
        "description": "SHA-256 hash",
        "full_description": "SHA-256 hash of the selected content (recommended)"
      },
      "security_level": "Recommended",
      "recommendation": "This is the recommended DANE configuration (DANE-EE + SPKI + SHA-256)"
    },
    "validation": {
      "is_valid": true,
      "certificate_data_format": "Valid hexadecimal",
      "certificate_data_length_valid": true
    }
  }
}
```

## Use cases

- **DANE Configuration** — Validate DANE/TLSA record configuration to ensure proper certificate association and DNS security implementation
- **Authentication Audit** — Audit DNS-based authentication of named entities (DANE) for email servers and web services security compliance
- **Security Scanning** — Build DNS security scanning tools that validate TLSA records for certificate pinning and trust anchor verification
- **Certificate Pinning** — Verify certificate pinning implementation using TLSA records to protect against man-in-the-middle attacks and CA compromise

## SDKs

- **npm** — `npm install @apiverve/danevalidator` (https://www.npmjs.com/package/@apiverve/danevalidator)
- **NuGet** — `dotnet add package APIVerve.API.DANERecordValidator` (https://www.nuget.org/packages/APIVerve.API.DANERecordValidator)
- **Source** — https://github.com/apiverve/danevalidator-api

## More

- Full reference: https://docs.apiverve.com/ref/danevalidator
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
