{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mail-in-a-box/json-schema/mail-in-a-box-dnsdump-response-schema.json",
  "title": "DNSDumpResponse",
  "description": "DNS dump response.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mail-in-a-box-dns-api-openapi.yml#/components/schemas/DNSDumpResponse",
  "type": "array",
  "items": {
    "$ref": "#/$defs/DNSDumpDomains"
  },
  "$defs": {
    "DNSDumpDomainRecord": {
      "type": "object",
      "required": [
        "explanation",
        "qname",
        "type",
        "value"
      ],
      "properties": {
        "explanation": {
          "type": "string"
        },
        "qname": {
          "$ref": "#/$defs/Hostname"
        },
        "rtype": {
          "$ref": "#/$defs/DNSRecordType"
        },
        "value": {
          "type": "string"
        }
      },
      "description": "Domain DNS record details."
    },
    "DNSDumpDomainRecords": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DNSDumpDomainRecord"
      },
      "description": "List of domain records."
    },
    "DNSDumpDomains": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "$ref": "#/$defs/Hostname"
          },
          {
            "$ref": "#/$defs/DNSDumpDomainRecords"
          }
        ]
      },
      "description": "A list of records per domain.\n\nThe first item in the list is the domain and the second item is the list of records.\n"
    },
    "DNSRecordType": {
      "enum": [
        "A",
        "AAAA",
        "CAA",
        "CNAME",
        "TXT",
        "MX",
        "SRV",
        "SSHFP",
        "NS"
      ],
      "description": "DNS record type."
    },
    "Hostname": {
      "type": "string",
      "format": "hostname",
      "description": "Hostname format."
    }
  }
}