# Descripción general

Canonical URL: https://developers.iagenify.com/es/sdk/ref/domain/
Language: es

Un dominio adjunto: su estado, sus registros, su correo, y si cambiar a nosotros es seguro todavía.

Status: records, hosting and mail · status is proof

| Miembro | Función |
| --- | --- |
| [comprobar()](/es/sdk/ref/domain/check) | Relee la zona. Esto es lo que se mueve `status`. |
| [migración()](/es/sdk/ref/domain/migration) | ¿Se podría cambiar ahora romper algo? |
| [serv()](/es/sdk/ref/domain/serve) · [no serve()](/es/sdk/ref/domain/unserve) | Hacer que un nombre de host realmente servir. |
| [quitar()](/es/sdk/ref/domain/remove) | Destácalo. |
| [registros](/es/sdk/ref/domain/records/list) | `list` · `set` · `remove` · `import`. |
| [correo](/es/sdk/ref/domain/mail/enable) | `enable` · `status` · `hosts` · `dmarc` · `bimi` · `disable`. |
| [attach()](/es/sdk/ref/domain/attach) · [attachments()](/es/sdk/ref/domain/attach) | Put a host of the account behind the name. |
| [redirects](/es/sdk/ref/domain/redirects) | Send `www` — or the root — somewhere else. |
| [owner()](/es/sdk/ref/domain/owner) · [tls()](/es/sdk/ref/domain/tls) | The registry's view, and the certificates. |
| [dnssec](/es/sdk/ref/domain/dnssec) · [verify()](/es/sdk/ref/domain/verify) | Sign the zone; prove the domain to a service. |

## Lo que lleva {#properties}

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `name` | string |  | El dominio. |
| `status` | string |  | `pending_nameservers` hasta que el registrador señale aquí; `active` Después. |
| `nameservers` | string[] |  | Qué configurar en el registrador. **Léelos; nunca codifiquen un par.** |
| `dns` | object |  | `{ mxOk, spfOk, dkimOk, dmarcOk, checkedAt }` — los testigos de correo. |
| `imported` | object |  | `{ found, added, at }` — lo que la toma encontró y copió. |
| `mailHosts` | array |  | Hosts donde el correo está habilitado, cada uno con su selector y sus testigos. |
| `registrar` | string |  | ¿Quién lo registró? |

## Un host, no sólo un dominio {#two-levels}

> **El ápice y un subdominio están separados para el correo**
>
> 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 {#sequence}

```javascript
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 mail
```

- [migration()](/es/sdk/ref/domain/migration): ¿Ya es seguro cambiar de lugar?
- [records.set()](/es/sdk/ref/domain/records/set): Escribiendo un disco.
- [mail.enable()](/es/sdk/ref/domain/mail/enable): Correo en una llamada.

```python
domain = 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
```
