# Visão geral

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

Un dominio annesso: il suo stato, i suoi records, il suo mail, e se ci passe a noi è ancora salubre.

Status: records, hosting and mail · status is proof

| Membro | Função |
| --- | --- |
| [check()](/pt/sdk/ref/domain/check) | Re-legge la zona. Questo è lo que move `status`. |
| [migrazione()](/pt/sdk/ref/domain/migration) | Se commutasse ora rompera ningun? |
| [serve()](/pt/sdk/ref/domain/serve) · [unserve()](/pt/sdk/ref/domain/unserve) | Fare un nome d'host realmente servir. |
| [remove()](/pt/sdk/ref/domain/remove) | Atacha. |
| [records](/pt/sdk/ref/domain/records/list) | `list` · `set` · `remove` · `import`. |
| [mail](/pt/sdk/ref/domain/mail/enable) | `enable` · `status` · `hosts` · `dmarc` · `bimi` · `disable`. |
| [attach()](/pt/sdk/ref/domain/attach) · [attachments()](/pt/sdk/ref/domain/attach) | Put a host of the account behind the name. |
| [redirects](/pt/sdk/ref/domain/redirects) | Send `www` — or the root — somewhere else. |
| [owner()](/pt/sdk/ref/domain/owner) · [tls()](/pt/sdk/ref/domain/tls) | The registry's view, and the certificates. |
| [dnssec](/pt/sdk/ref/domain/dnssec) · [verify()](/pt/sdk/ref/domain/verify) | Sign the zone; prove the domain to a service. |

## Ce porta {#properties}

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `name` | string |  | Dominio. |
| `status` | string |  | `pending_nameservers` fino a che l'inregistratore punticòsqui; `active` apròs. |
| `nameservers` | string[] |  | Qua impostare al registrari. **Lee-le; mai hardcode una paira.** |
| `dns` | object |  | `{ mxOk, spfOk, dkimOk, dmarcOk, checkedAt }` — i testimoni del mail. |
| `imported` | object |  | `{ found, added, at }` — o che la presa ha trovato e copiato. |
| `mailHosts` | array |  | Hostens onde la posta è activata, cada uno con il selector e i testimoni. |
| `registrar` | string |  | Chi l'ha registrat. |

## Un host, non un dominio {#two-levels}

> **L'apex e un subdominio sono separati per la posta**
>
> 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 {#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()](/pt/sdk/ref/domain/migration): E' ancora sicuro il conmutare?
- [records.set()](/pt/sdk/ref/domain/records/set): Scrivendo un record.
- [mail.enable()](/pt/sdk/ref/domain/mail/enable): Mail in un sollevo.

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