{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dns-coffee/json-schema/dns-coffee-name-server-info-schema.json",
  "title": "NameServerInfo",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dns-coffee-openapi.yml#/components/schemas/NameServerInfo",
  "additionalProperties": false,
  "properties": {
    "$schema": {
      "description": "A URL to the JSON Schema for this object.",
      "format": "uri",
      "readOnly": true,
      "type": "string"
    },
    "archive_domain_count": {
      "description": "Number of domains that once used the nameserver but no longer do.",
      "format": "int64",
      "type": "integer"
    },
    "archive_ipv4_count": {
      "description": "Number of archived (no longer current) IPv4 glue addresses.",
      "format": "int64",
      "type": "integer"
    },
    "archive_ipv6_count": {
      "description": "Number of archived (no longer current) IPv6 glue addresses.",
      "format": "int64",
      "type": "integer"
    },
    "domain_count": {
      "description": "Number of domains currently using the nameserver, leaving out zones we have not received in over six months (stale on /zones): the live count. stale_domain_count holds the rest; the history series still includes them.",
      "format": "int64",
      "type": "integer"
    },
    "first_seen": {
      "description": "Date the nameserver (or this association) was first observed. Absent when it was already present when tracking of its zone began.",
      "format": "date-time",
      "type": "string"
    },
    "ipv4_count": {
      "description": "Number of current IPv4 glue addresses for the nameserver.",
      "format": "int64",
      "type": "integer"
    },
    "ipv6_count": {
      "description": "Number of current IPv6 glue addresses for the nameserver.",
      "format": "int64",
      "type": "integer"
    },
    "last_seen": {
      "description": "Date the nameserver (or this association) was last observed. Absent while it is still active.",
      "format": "date-time",
      "type": "string"
    },
    "name": {
      "description": "Nameserver hostname, in lowercase.",
      "type": "string"
    },
    "parent_zone": {
      "$ref": "#/$defs/Zone",
      "description": "The zone the row was observed in. Present only on endpoints that accept the parent_zone flag, when it is set."
    },
    "stale_domain_count": {
      "description": "Number of domains using this nameserver in zones we have not received a zone file for in over six months (stale on /zones). Their delegations are still current as of each zone's last import, so they appear in the domain lists, but they are left out of domain_count; domain_count + stale_domain_count is every current delegation. Present with domain_count.",
      "format": "int64",
      "type": "integer"
    }
  },
  "required": [
    "name"
  ],
  "type": "object",
  "$defs": {
    "Zone": {
      "additionalProperties": false,
      "properties": {
        "first_seen": {
          "description": "Date the zone (or, on a nameserver's zone lists, this association) was first observed. Absent when it was already present when tracking began.",
          "format": "date-time",
          "type": "string"
        },
        "last_import": {
          "description": "Date of the zone's most recent zone-file import. Present alongside stale; absent for a zone never imported.",
          "format": "date-time",
          "type": "string"
        },
        "last_seen": {
          "description": "Date the zone (or, on a nameserver's zone lists, this association) was last observed. Absent while the zone is still active.",
          "format": "date-time",
          "type": "string"
        },
        "name": {
          "description": "Zone name (the TLD), in lowercase. Empty for the root zone.",
          "type": "string"
        },
        "stale": {
          "description": "True when we have not received a zone file for the zone in over six months, although it has not been removed from the root. Its last-known delegations are still listed as current, but they are left out of live counts such as a nameserver's domain_count and an address's nameserver_count, and reported separately as stale counts. Always false for the root zone and for zones removed from the root. Present on zone responses and on parent_zone objects.",
          "type": "boolean"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    }
  }
}