# Asset DNS History Detail

GET /easm/assets/{asset_id}/dns-history/{history_id}: Returns one DNS snapshot of an asset, by the history_id returned by the list endpoint.

Source: https://docs.deepinfo.com/reference/easm/asset-dns-history-detail/

Last updated: 2026-09-27

---
`GET https://api.deepinfo.com/v1/easm/assets/{asset_id}/dns-history/{history_id}`

Returns one DNS snapshot of an asset, by the `history_id` returned by the list endpoint.

## Authentication

Send your API key in the `apikey` request header.

## Path Parameters

| Parameter | Required | Description | Example |
|---|---|---|---|
| `asset_id` | Required |  | `000000000000000ea4f90001` |
| `history_id` | Required |  | `00000000000000000000000ebd470001` |

## Response Fields

| Field | Type | Description |
|---|---|---|
| `result` | object |  |
| `status` | boolean |  |
| `check_date` | string | date-time |

## Response Schema

_Inferred from examples._ Built from the saved 2xx example response: the fields it contains, with the types seen there. It is not a contract.

| Field | Type |
|---|---|
| `result` | object |
| `result.fqdn` | string |
| `result.requested_types` | array<string> |
| `result.responses` | array<object> |
| `result.responses[].type` | string |
| `result.responses[].conn_status` | string |
| `result.responses[].rcode` | string |
| `result.responses[].raw` | string |
| `result.responses[].values` | array<string> |
| `result.responses[].server` | string |
| `result.servers` | array<string> |
| `result.check_date` | string |
| `status` | boolean |
| `check_date` | string |

## Examples

### 200 · OK

```bash
curl 'https://api.deepinfo.com/v1/easm/assets/000000000000000ea4f90001/dns-history/00000000000000000000000ebd470001' \
  -H 'apikey: YOUR_API_KEY' \
  -H 'Accept: application/json'
```

`Content-Type: application/json` · `deepinfo-request-id: 00000000-0000-4000-8000-0000356d0001`

```json
{
  "result": {
    "fqdn": "www.acme.example",
    "requested_types": [
      "A",
      "AAAA"
    ],
    "responses": [
      {
        "type": "A",
        "conn_status": "success",
        "rcode": "NOERROR",
        "raw": "Raw record text.",
        "values": [
          "192.0.2.10",
          "192.0.2.11"
        ],
        "server": "192.0.2.10"
      },
      {
        "type": "AAAA",
        "conn_status": "success",
        "rcode": "NOERROR",
        "raw": "Raw record text.",
        "values": [
          "2001:db8::4",
          "2001:db8::5"
        ],
        "server": "192.0.2.10"
      }
    ],
    "servers": [
      "192.0.2.10"
    ],
    "check_date": "2025-07-31T08:00:00Z"
  },
  "status": true,
  "check_date": "2025-07-31T08:00:00Z"
}
```

### 404 · Not Found (nonexistent asset_id)

```bash
curl 'https://api.deepinfo.com/v1/easm/assets/ffffffffffffffffffffffff/dns-history/ffffffffffffffffffffffff' \
  -H 'apikey: YOUR_API_KEY' \
  -H 'Accept: application/json'
```

`Content-Type: application/json` · `deepinfo-request-id: 00000000-0000-4000-8000-0000356d0001`

```json
{
  "code": 30003,
  "details": [
    "Asset does not exist."
  ],
  "solution": "https://docs.deepinfo.com/reference/"
}
```
