# Get name DNS

`GET https://api.unique.domains/v1/names/{name}/dns`

The latest stored DNS reading of one name, with its parking venue.

NS, A, AAAA, CNAME and MX records, whether a website answers, and the parking venue the reading points at. A name the catalog never stored answers 200 with `read: false` and empty facts, never 404.

- Access: No key. Limited per address; a key adds the paid fields.
- Billing: One call.
- Formats: JSON
- API: Domain Check API

## Request

| Field | Type | Needs | Where | Description |
| --- | --- | --- | --- | --- |
| `name` | string | Required | Path | A full domain name on an ending the catalog holds, lowercased, IDN as punycode. A bare word, a subdomain, an e-mail address or an unknown ending answers 400 `validation_failed` with `reason` and `suggestion`. |
| `fields` | string | Optional | Query | Comma-separated top-level keys to keep; an unknown key answers 400 `unsupported_field`. |

## Sample request

```bash
curl -X GET "https://api.unique.domains/v1/names/get.plumbing/dns"
```

## Response

| Field | Type | Description |
| --- | --- | --- |
| `read` | boolean |  |
| `ns` | string[] |  |
| `a` | string[] |  |
| `aaaa` | string[] |  |
| `cname` | string[] |  |
| `mx` | object[] |  |
| `hasWebsite` | boolean \| null |  |
| `parking` | string \| null |  |

## Errors

| Code | Status | What it means |
| --- | --- | --- |
| [`validation_failed`](https://unique.domains/api/problems/validation_failed) | 400 | A value is not valid |
| [`rate_limited`](https://unique.domains/api/problems/rate_limited) | 429 | Too many requests |
| [`internal`](https://unique.domains/api/problems/internal) | 500 | Unexpected error |

## Example answer

200, application/json

```json
{
  "data": {
    "read": true,
    "ns": [
      "ns6.afternic.com",
      "ns5.afternic.com"
    ],
    "a": [
      "76.223.54.146",
      "13.248.169.48"
    ],
    "aaaa": [],
    "cname": [],
    "mx": [
      {
        "exchange": "",
        "priority": 0
      }
    ],
    "hasWebsite": true,
    "parking": "afternic"
  },
  "meta": {
    "asOf": null,
    "cursor": null,
    "limit": null
  },
  "links": {
    "self": "https://api.unique.domains/v1/names/get.plumbing/dns",
    "next": null,
    "register": null,
    "product": null,
    "dataset": null
  }
}
```

API status: https://uniquedomains.instatus.com

Full reference: https://unique.domains/api
