# DomainHostname

The DomainHostname type of the TypeScript SDK, part of DomainHostnameList.

```ts
type DomainHostname = {
  checkedAt: number | null
  createdAt: number | null
  directOnly: boolean
  domain: string
  hostname: string | null
  nsTargets?: string[]
  service: HostnameService
  status: HostnameCheckStatus
  target: string | null
  verifiedAt: number | null
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `checkedAt` | `number` \| `null` | Timestamp of the most recent verification check in epoch seconds |
| `createdAt` | `number` \| `null` | Timestamp when hostname was configured in epoch seconds |
| `directOnly` | `boolean` | True if CNAME must resolve directly without HTTP proxying (mail/smtp) |
| `domain` | `string` | Domain name |
| `hostname` | `string` \| `null` | Configured custom hostname, or null when unclaimed |
| `nsTargets` | `string[]` | Optional. mx only: the platform nameserver hostnames the customer must publish as NS records at the claimed name (instead of a CNAME) |
| `service` | [`HostnameService`](/docs/sdks/typescript/types/hostname-service) |  |
| `status` | [`HostnameCheckStatus`](/docs/sdks/typescript/types/hostname-check-status) |  |
| `target` | `string` \| `null` | Expected CNAME target host to point DNS to (null for the NS-delegated mx service) |
| `verifiedAt` | `number` \| `null` | Timestamp when hostname was successfully verified in epoch seconds |

## Used in

[`DomainHostnameList`](/docs/sdks/typescript/types/domain-hostname-list).
