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"]idstringWhat remove() takes.
typestringA, AAAA, CNAME, TXT, MX, SRV, CAA.
namestringRelative to the zone. @ is the apex.
contentstringThe value.
priority · ttlnumberOn the types that have them.
This is the reference
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.