---
title: "List DNS records and zone authority metadata for a customer-owned domain"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.hostedez.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Hosted EZ REST API

`GET /v1/domains/{domainId}/dns/records`

## Authentication

- `sessionCookie`, apiKey, in cookie

## Path parameters

- `listDNSZoneRecords.path.domainId` (string, required) — Owned domain order ID (dor_...), Hosted EZ DNS zone ID (zon_...), or apex hostname (example.com).

## Code samples

### cURL

```curl
curl --request GET \
  --url https://api.hostedez.com/v1/domains/string/dns/records \
  --header '__Secure-better-auth.session_token: <value>'
```

### TypeScript

```typescript
const url = 'https://api.hostedez.com/v1/domains/string/dns/records';
const options = {method: 'GET', headers: {'__Secure-better-auth.session_token': '<value>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.hostedez.com/v1/domains/string/dns/records"

headers = {"__Secure-better-auth.session_token": "<value>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

DNS zone metadata and records

#### Example

```json
{
  "authoritative": true,
  "dnssecEnabled": true,
  "domain": "string",
  "editable": true,
  "ezghZoneId": "string",
  "nameservers": [
    "string"
  ],
  "orderId": "string",
  "records": [
    {
      "content": "string",
      "flags": 0,
      "fqdn": "string",
      "id": "string",
      "locked": true,
      "managed": true,
      "managedReason": "string",
      "managedSource": "site",
      "name": "string",
      "port": 0,
      "priority": 0,
      "tag": "string",
      "ttl": 0,
      "type": "string",
      "value": "string",
      "weight": 0
    }
  ],
  "requiredNameservers": [
    "string"
  ],
  "zoneStatus": "active"
}
```

- `listDNSZoneRecords.response.200.authoritative` (boolean, required)
- `listDNSZoneRecords.response.200.dnssecEnabled` (boolean, required)
- `listDNSZoneRecords.response.200.domain` (string, required)
- `listDNSZoneRecords.response.200.editable` (boolean, required)
- `listDNSZoneRecords.response.200.ezghZoneId` (string | null, required)
- `listDNSZoneRecords.response.200.nameservers` (array<string>, required)
- `listDNSZoneRecords.response.200.orderId` (string | null, required)
- `listDNSZoneRecords.response.200.records` (array<object>, required)
  - `listDNSZoneRecords.response.200.records.content` (string, required)
  - `listDNSZoneRecords.response.200.records.flags` (integer | null, required)
  - `listDNSZoneRecords.response.200.records.fqdn` (string, required)
  - `listDNSZoneRecords.response.200.records.id` (string, required)
    - pattern `^rec_[0-9a-f]{24}$`
  - `listDNSZoneRecords.response.200.records.locked` (boolean, required)
  - `listDNSZoneRecords.response.200.records.managed` (boolean, required)
  - `listDNSZoneRecords.response.200.records.managedReason` (string | null, required)
  - `listDNSZoneRecords.response.200.records.managedSource` (string | null, required)
    - one of `"site"`, `"email"`, `"system"`, `"ezgh_platform"`, `null`
  - `listDNSZoneRecords.response.200.records.name` (string, required)
  - `listDNSZoneRecords.response.200.records.port` (integer | null, required)
  - `listDNSZoneRecords.response.200.records.priority` (integer | null, required)
  - `listDNSZoneRecords.response.200.records.tag` (string | null, required)
  - `listDNSZoneRecords.response.200.records.ttl` (integer, required)
  - `listDNSZoneRecords.response.200.records.type` (string, required)
  - `listDNSZoneRecords.response.200.records.value` (string, required)
  - `listDNSZoneRecords.response.200.records.weight` (integer | null, required)
- `listDNSZoneRecords.response.200.requiredNameservers` (array<string>, required)
- `listDNSZoneRecords.response.200.zoneStatus` (string, required)
  - one of `"active"`, `"pending_delegation"`, `"not_on_ezgh_dns"`

### 401

Unauthenticated

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string"
  }
}
```

- `listDNSZoneRecords.response.401.error` (object, required)
  - `listDNSZoneRecords.response.401.error.code` (string, required)
  - `listDNSZoneRecords.response.401.error.message` (string, required)
  - `listDNSZoneRecords.response.401.error.issues` (array<object>, optional)
    - `listDNSZoneRecords.response.401.error.issues.message` (string, required)
    - `listDNSZoneRecords.response.401.error.issues.path` (string, required)

### 404

Domain not found

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string"
  }
}
```

- `listDNSZoneRecords.response.404.error` (object, required)
  - `listDNSZoneRecords.response.404.error.code` (string, required)
  - `listDNSZoneRecords.response.404.error.message` (string, required)
  - `listDNSZoneRecords.response.404.error.issues` (array<object>, optional)
    - `listDNSZoneRecords.response.404.error.issues.message` (string, required)
    - `listDNSZoneRecords.response.404.error.issues.path` (string, required)

### 429

Rate limited

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string"
  }
}
```

- `listDNSZoneRecords.response.429.error` (object, required)
  - `listDNSZoneRecords.response.429.error.code` (string, required)
  - `listDNSZoneRecords.response.429.error.message` (string, required)
  - `listDNSZoneRecords.response.429.error.issues` (array<object>, optional)
    - `listDNSZoneRecords.response.429.error.issues.message` (string, required)
    - `listDNSZoneRecords.response.429.error.issues.path` (string, required)

### 503

DNS zone service unavailable

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string"
  }
}
```

- `listDNSZoneRecords.response.503.error` (object, required)
  - `listDNSZoneRecords.response.503.error.code` (string, required)
  - `listDNSZoneRecords.response.503.error.message` (string, required)
  - `listDNSZoneRecords.response.503.error.issues` (array<object>, optional)
    - `listDNSZoneRecords.response.503.error.issues.message` (string, required)
    - `listDNSZoneRecords.response.503.error.issues.path` (string, required)


Source: https://docs.hostedez.com/api/listDNSZoneRecords/index.md
