# Dominio

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

`domain({ action, domain?, type?, name?, content?, … })`

I domini del cont e i loro DNS. Lectura non costa nulla; ogni cambio di zona è approvat dal utente, anche in auto.

Status: read, or dns · asked even in auto · NS refused

## As ações {#actions}

| Libera (lect) | (dns) |
| --- | --- |
| `search` · `list` · `get` · `check` | `add` · `import` · `remove` |
| `migration` · `records` · `servers` | `record` · `unrecord` |
| `mail_status` | `mail_enable` · `mail_disable` · `serve` · `unserve` |
| `owner` · `expiring` · `tls` | `attach` · `detach` |
| `attachments` · `redirects` | `redirect` · `unredirect` |
| `dnssec_status` · `verifications` | `dnssec` · `dnssec_off` · `verify` · `dmarc` · `bimi` |

## migrazione prima che nulla sia commutato {#dnssec}

Dir a un utent di apontare i loro servèntori a noi troppo presto ferma il loro site, il loro mail e la loro firma istantuo. L'agente è instruit a executare migrazion e legga il tema dominis prima di pronunciar un mote a proposito de servènînînîns.

> **Turning it off is the dangerous half**
>
> Un record non fa un nome servir

## La piattaforma che serve deve anche accettare il nome, o il suo bordo nega la connessione. `serve` fa ambo insieme — il record e l'inregistrament — e `servers` lista cosa sa servir. Per qualcosa hésted in IaGenify se, [implementare](/pt/sdk/agent/tools/deploy) propria azione `domain` è la chen da usare. {#redirects}

NS è negato

## Un record che delega un nome è esattamente a quel assomiglia un subdominio assunzione, quindi il tipo non è acceptat per ningun. {#registry}

«sempre» è per domini

## Aprobare una zona per la sessione mai approvare un'altra, e nada è escrito al disco. {#verify}

A code pasted without its prefix gets it, and a code pasted with another service's prefix is refused rather than rewritten. The service itself verifies, when it decides — the answer says so, so the agent cannot announce success.

## migration before anything is switched {#migration}

> **A zone starts empty**
>
> Telling a user to point their nameservers at us too early stops their site, their mail and their signature at once. The agent is instructed to run migration and read the domains topic before saying a word about nameservers.

## A record does not make a name serve {#serve}

The platform that serves must also accept the name, or its edge refuses the connection. `serve` does both together — the record and the registration — and `servers` lists what can serve. For something hosted on IaGenify itself, [deploy](/pt/sdk/agent/tools/deploy)'s own `domain` action is the one to use.

## NS is refused {#ns}

A record delegating a name away is exactly what a subdomain takeover looks like, so the type is not accepted at all.

## « always » is per domain {#always}

Approving one zone for the session never approves another, and nothing is written to disk.

- [Domain](/pt/sdk/ref/domain): From code.
- [dns](/pt/sdk/agent/permissions/categories/dns): Why auto still asks.
- [Agent tools](/pt/sdk/agent/tools): The 35, by family.
