| Membro | Função |
|---|---|
| check() | Re-legge la zona. Questo è lo que move status. |
| migrazione() | Se commutasse ora rompera ningun? |
| serve() · unserve() | Fare un nome d'host realmente servir. |
| remove() | Atacha. |
| records | list · set · remove · import. |
enable · status · hosts · dmarc · bimi · disable. | |
| attach() · attachments() | Put a host of the account behind the name. |
| redirects | Send www — or the root — somewhere else. |
| owner() · tls() | The registry's view, and the certificates. |
| dnssec · verify() | Sign the zone; prove the domain to a service. |
Ce porta
namestringDominio.
statusstringpending_nameservers fino a che l'inregistratore punticòsqui; active apròs.
nameserversstring[]Qua impostare al registrari. Lee-le; mai hardcode una paira.
dnsobject{ mxOk, spfOk, dkimOk, dmarcOk, checkedAt } — i testimoni del mail.
importedobject{ found, added, at } — o che la presa ha trovato e copiato.
mailHostsarrayHostens onde la posta è activata, cada uno con il selector e i testimoni.
registrarstringChi l'ha registrat.
Un host, non un dominio
Cada uno ha i suoi propri records, la sua propria chiave e la sua politica — un record apex non copre un subdominio. mailHosts è una lista per essa ragione, e ogni appelo de posta prend un subdominio.
La sequencia usual
const domain = await api.domains.get("example.com");
await domain.migration(); // safe to switch?
await domain.records.import(); // if not
await domain.check(); // until status is "active"
await domain.mail.enable(); // then maildomain = api.domains.get("example.com")
domain.migration() # safe to switch?
domain.records.import_zone() # if not
domain.check() # until status is "active"
domain.mail.enable() # then mail