---
title: "Look up a domain's DNS footprint"
description: "Returns the DNS footprint of a domain from DNSDumpster. The footprint contains A, MX, NS, CNAME, and TXT records. Each address includes its network operator (ASN), netblock, country, reverse DNS, and service banners. Send `domain`. Or send `entityId` to use the official website that Y2 records for that entity. A snapshot younger than 14 days answers every caller with `outcome: reused`. It does not use the workspace allowance. Otherwise Y2 takes a new snapshot with `outcome: fetched`. A new snapshot uses one monthly DNS lookup. Pro includes 5. Elite includes 1,000. `usage` reports the allowance after this request. A failed provider call returns the lookup to the allowance. Y2 stores each snapshot with the time when it arrived. The snapshot adds the domain, hosts, addresses, netblocks, and network operators to the shared ontology. A known organization whose official website is the domain `operates` it. Each relation records when snapshots first and last evidenced it. The free tier returns up to 50 A records for each domain. `truncated` is true when the provider has more. The request can wait up to about 40 seconds while Y2 paces provider calls. Requires a workspace-bound API key with `intel:cyber` on a Pro or Elite plan. Not available through x402."
canonical: https://y2.dev/docs/api/reference/intel/createDnsLookupV2/
---

Endpoint Reference[Intel](https://y2.dev/docs/api/reference/intel)

# Look up a domain's DNS footprint

Returns the DNS footprint of a domain from DNSDumpster. The footprint contains A, MX, NS, CNAME, and TXT records. Each address includes its network operator (ASN), netblock, country, reverse DNS, and service banners. Send \`domain\`. Or send \`entityId\` to use the official website that Y2 records for that entity. A snapshot younger than 14 days answers every caller with \`outcome: reused\`. It does not use the workspace allowance. Otherwise Y2 takes a new snapshot with \`outcome: fetched\`. A new snapshot uses one monthly DNS lookup. Pro includes 5. Elite includes 1,000. \`usage\` reports the allowance after this request. A failed provider call returns the lookup to the allowance. Y2 stores each snapshot with the time when it arrived. The snapshot adds the domain, hosts, addresses, netblocks, and network operators to the shared ontology. A known organization whose official website is the domain \`operates\` it. Each relation records when snapshots first and last evidenced it. The free tier returns up to 50 A records for each domain. \`truncated\` is true when the provider has more. The request can wait up to about 40 seconds while Y2 paces provider calls. Requires a workspace-bound API key with \`intel:cyber\` on a Pro or Elite plan. Not available through x402.

`POST https://api.y2.dev/api/v2/cyber/dns/lookups`

- Operation ID: `createDnsLookupV2`
- Required scopes: `intel:cyber`
- Contract: https://y2.dev/openapi.json

## Request body

`application/json`: `DnsLookupRequest` (required)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `domain` | string | No | Domain name. Y2 reduces a URL or `www.` host to its domain |
| `entityId` | string | No | Entity whose known official website to look up |

## Responses

| Status | Description | Body |
| --- | --- | --- |
| 200 | The domain's current DNS snapshot and the workspace allowance | `DnsLookupResponse` |
| 400 | Invalid request parameters |  |
| 401 | Missing or invalid API key |  |
| 403 | Insufficient permissions or access denied |  |
| 404 | Resource not found |  |
| 429 | Rate limit exceeded (per-key or per-account aggregate) |  |
| 500 | Internal server error |  |
| 503 | Y2 Global Knowledge is disabled or its retrieval provider is unavailable. |  |

### 200 response fields

| Field | Type | Description |
| --- | --- | --- |
| `data` | object |  |
| `data.outcome` | `fetched`, `reused` | `reused` when a snapshot younger than 14 days answered the request |
| `data.snapshot` | `DnsSnapshot` |  |
| `usage` | `DnsLookupUsage` |  |
| `usage.period` | string | Calendar month (UTC) of the allowance |
| `usage.used` | integer | Provider lookups the workspace has used this month |
| `usage.limit` | integer | Monthly allowance of the workspace plan |
