| Miembro | Función |
|---|---|
| comprobar() | Relee la zona. Esto es lo que se mueve status. |
| migración() | ¿Se podría cambiar ahora romper algo? |
| serv() · no serve() | Hacer que un nombre de host realmente servir. |
| quitar() | Destácalo. |
| registros | list · set · remove · import. |
| correo | 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. |
Lo que lleva
namestringEl dominio.
statusstringpending_nameservers hasta que el registrador señale aquí; active Después.
nameserversstring[]Qué configurar en el registrador. Léelos; nunca codifiquen un par.
dnsobject{ mxOk, spfOk, dkimOk, dmarcOk, checkedAt } — los testigos de correo.
importedobject{ found, added, at } — lo que la toma encontró y copió.
mailHostsarrayHosts donde el correo está habilitado, cada uno con su selector y sus testigos.
registrarstring¿Quién lo registró?
Un host, no sólo un dominio
Cada uno tiene sus propios registros, su propia clave y su propia política — un registro de ápice no cubre un subdominio. mailHosts es una lista por esa razón, y cada llamada de correo toma un subdominio.
La secuencia habitual
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