{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/domani-run/json-schema/domani-run-dns-record-schema.json",
  "title": "DnsRecord",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/domani-run-connect-api-openapi.yml#/components/schemas/DnsRecord",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "A",
        "AAAA",
        "CNAME",
        "MX",
        "TXT",
        "NS",
        "SRV",
        "CAA",
        "TLSA"
      ],
      "description": "DNS record type. TLSA publishes a DANE record; its value is the rdata 'usage selector matching-type hex-data'."
    },
    "name": {
      "type": "string",
      "description": "Record name (@ for root, or subdomain, e.g. _443._tcp for TLSA)"
    },
    "value": {
      "type": "string",
      "description": "Record value (IP address, hostname, or TLSA rdata like '3 1 1 abc123...')"
    },
    "ttl": {
      "type": "integer",
      "description": "Time to live in seconds"
    },
    "priority": {
      "type": "integer",
      "description": "Priority value (required for MX records)"
    },
    "required": {
      "type": "boolean",
      "description": "False when the zone Domani manages for the domain cannot hold the record (a TXT longer than the registrar accepts); such a record is shown but not needed for mail to work. Absent on plain zone records."
    }
  },
  "required": [
    "type",
    "name",
    "value",
    "ttl"
  ]
}