# DomainDnsCheck

The DomainDnsCheck type of the TypeScript SDK, which domains.checkDns take or answer.

```ts
type DomainDnsCheck = {
  cached: boolean
  checkedAt: number | null
  domain: string
  records: DnsRecordCheck[]
  resolverUnavailable?: boolean
  status: DnsStatus
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `cached` | `boolean` | true = a stored verdict, not a fresh query |
| `checkedAt` | `number` \| `null` |  |
| `domain` | `string` |  |
| `records` | [`DnsRecordCheck[]`](/docs/sdks/typescript/types/dns-record-check) | The records this domain needs, plus liveness where known |
| `resolverUnavailable` | `boolean` | Optional. true = DNS could not be queried; records are still returned, nothing stored |
| `status` | [`DnsStatus`](/docs/sdks/typescript/types/dns-status) |  |

## Used by

| Method | What it does |
| --- | --- |
| [`domains.checkDns`](/docs/sdks/typescript/domains/check-dns) | Check domain DNS records |
