# records.list()

Canonical URL: https://developers.iagenify.com/sdk/ref/domain/records/list/
Language: en

`domain.records.list() → Promise<Record[]>`

Every record in the zone, as it stands. The reference for what is actually there.

Status: GET · free · the whole zone

```javascript
const records = await domain.records.list();
// [{ id, type: "MX", name: "@", content: "…", priority: 10, ttl: 1 }]

const mx = records.filter((r) => r.type === "MX");
```

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `id` | string |  | What `remove()` takes. |
| `type` | string |  | `A`, `AAAA`, `CNAME`, `TXT`, `MX`, `SRV`, `CAA`. |
| `name` | string |  | Relative to the zone. `@` is the apex. |
| `content` | string |  | The value. |
| `priority · ttl` | number |  | On the types that have them. |

## This is the reference {#reference}

> **A zone export is not exhaustive**
>
> Export formats drop record types they cannot represent. What the zone actually holds is what this returns — which is why it is what the witnesses are computed from.

## Names are relative {#names}

`@` for the apex, `www` for the subdomain, `mail._domainkey` for a key. A name is always inside the zone, which is also why a record cannot be made to point out of it.

## After enabling mail {#after-mail}

Four kinds appear: the records that route mail, the one saying who may send, the signing key, and the policy. [mail.status()](/sdk/ref/domain/mail/status) reads them as four booleans.

- [records.set()](/sdk/ref/domain/records/set): Writing one.
- [records.import()](/sdk/ref/domain/records/import): Copying a whole zone in.

```python
records = domain.records.list()
# [{"id", "type": "MX", "name": "@", "content": "…", "priority": 10, "ttl": 1}]

mx = [r for r in records if r["type"] == "MX"]
```
