# dominio

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

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

Los dominios de la cuenta y sus DNS. La lectura no cuesta nada; cada cambio de zona es aprobado por el usuario, incluso en auto.

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

## Las acciones {#actions}

| Gratis (leer) | Preguntado (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` |

## migración antes de que se cambie nada {#dnssec}

El que un usuario nos señale sus nombres demasiado pronto para su sitio, su correo y su firma a la vez. El agente es instruido para ejecutar la migración y leer el tema de dominios antes de decir una palabra sobre los nombres.

> **Turning it off is the dangerous half**
>
> Un registro no hace que un nombre sirva

## La plataforma que sirve también debe aceptar el nombre, o su borde rechaza la conexión. `serve` hace ambas cosas juntas —el registro y el registro— y `servers` para algo alojado en IaGenify en sí mismo, [desplegar](/es/sdk/agent/tools/deploy)« s propios `domain` acción es la única que se puede usar. {#redirects}

Se rechaza el NS

## Un registro que delegue un nombre es exactamente lo que parece una adquisición de subdominio, por lo que el tipo no es aceptado en absoluto. {#registry}

« siempre » es por dominio

## La aprobación de una zona para la sesión nunca aprueba otra, y nada se escribe en 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](/es/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](/es/sdk/ref/domain): From code.
- [dns](/es/sdk/agent/permissions/categories/dns): Why auto still asks.
- [Agent tools](/es/sdk/agent/tools): The 35, by family.
