Get an API key
Domain

records.list()

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

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

GETfreethe whole zone
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

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

const mx = records.filter((r) => r.type === "MX");
records = domain.records.list()
# [{"id", "type": "MX", "name": "@", "content": "…", "priority": 10, "ttl": 1}]

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

What remove() takes.

typestring

A, AAAA, CNAME, TXT, MX, SRV, CAA.

namestring

Relative to the zone. @ is the apex.

contentstring

The value.

priority · ttlnumber

On the types that have them.

This is the 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

@ 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

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