Saltar al contenido
NimbusNexus

Zonas DNS

Una zona DNS es un dominio autoritativo alojado en los servidores de nombres de NimbusNexus. Crea una con POST /api/v1/zones/, indicando su name con el punto final (example.com.) y un email de administrador; la zona pertenece al proyecto que hace la llamada. Después apunta tu registrador de dominios a nuestros servidores de nombres y añade registros para publicar direcciones, el enrutamiento del correo y tokens de verificación de ese dominio.

Delegación

Estos son los servidores de nombres que tienes que configurar en tu registrador:

Text
ns1.dns.nimbusnexus.net
ns2.dns.nimbusnexus.net
ns3.dns.nimbusnexus.net
ns4.dns.nimbusnexus.net

Configúralos como registros NS de tu dominio en tu registrador (GoDaddy, Cloudflare Registrar, Porkbun, etc.). Cuando termine la propagación (normalmente entre unos minutos y unas pocas horas, según los TTLs del registrador), nuestros servidores de nombres pasan a ser autoritativos para el dominio.

Puedes seguir usando tu proveedor de DNS actual en paralelo durante una migración — los registros NS de ambos proveedores pueden coexistir durante un breve periodo si configuras el registrador para usar los dos conjuntos; después, quita el conjunto antiguo cuando hayas trasladado todos los registros.

Zona frente a subdominio

Una zona = un dominio. example.com es una zona; api.example.com es un subdominio que se gestiona con un registro A o CNAME dentro de la zona example.com, no una zona aparte — salvo que quieras delegar expresamente api.example.com a otro proveedor de DNS, en cuyo caso crearías por separado tanto example.com (con registros NS que apunten al otro proveedor para el subdominio) como la zona del subdominio.

Para el uso habitual, lo adecuado es una zona por dominio registrado.

Próximos pasos

Reference

GET/api/v1/zones/

Zones List

Lists DNS zones accessible to the calling project.

Parameters

NameInTypeDescription
namequerystring | null—
emailquerystring | null—
statusquerystring | null—
descriptionquerystring | null—
ttlqueryinteger | null—
limitqueryinteger | null—
markerquerystring | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/zones/" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/zones/

Zone Create

Creates a new DNS zone for the calling project.

Request body

FieldTypeDescription
admin_domainstring | null—
admin_projectstring | null—
name*stringZone FQDN, e.g. example.com.
email*stringDNS admin email
ttlinteger | nullDefault TTL for the zone
descriptionstring | null—
typeZoneType | nullPRIMARY or SECONDARY
mastersarray of string | nullMasters for SECONDARY zones
attributesobject | null—

Responses

  • 201Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/zones/" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Example",
    "email": "[email protected]"
  }'
GET/api/v1/zones/artifacts

Get Zones Create Artifacts

Returns the DNS zone domain artifacts available for zone creation.

Responses

  • 200Successful Response
  • 401Unauthorized
  • 403Forbidden
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/zones/artifacts" \
  -H "Authorization: Bearer $NIMBUS_KEY"
GET/api/v1/zones/{zone_id}

Zone Retrieve

Retrieves a single DNS zone by its identifier.

Parameters

NameInTypeDescription
zone_id*pathstring—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/zones/<zone_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"
PUT/api/v1/zones/{zone_id}

Zone Update

Updates the editable attributes of a DNS zone.

Parameters

NameInTypeDescription
zone_id*pathstring—

Request body

FieldTypeDescription
admin_domainstring | null—
admin_projectstring | null—
emailstring | null—
descriptionstring | null—
ttlinteger | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X PUT "https://api.nimbusnexus.net/api/v1/zones/<zone_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
DELETE/api/v1/zones/{zone_id}

Zone Delete

Deletes a DNS zone, optionally removing its shares first.

Parameters

NameInTypeDescription
zone_id*pathstring—
delete_sharesquerybooleanDelete all zone shares before deleting the zone

Responses

  • 204Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation Error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X DELETE "https://api.nimbusnexus.net/api/v1/zones/<zone_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"
GET/api/v1/zones/{zone_id}/shares/

Shared Zones List

Lists the projects a DNS zone is shared with.

Parameters

NameInTypeDescription
zone_id*pathstring—
admin_domainquerystring | null—
admin_projectquerystring | null—
target_project_idquerystring | null—
limitqueryinteger | null—
markerquerystring | null—

Responses

  • 200Successful Response
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/zones/<zone_id>/shares/" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/zones/{zone_id}/shares/

Shared Zones Create

Shares a DNS zone with another project.

Parameters

NameInTypeDescription
zone_id*pathstring—

Request body

FieldTypeDescription
target_project_id*stringTarget project UUID to share the zone with

Responses

  • 201Successful Response
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/zones/<zone_id>/shares/" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "target_project_id": "<target_project_id>"
  }'
GET/api/v1/zones/{zone_id}/shares/{shared_zone_id}

Shared Zone Retrieve

Retrieves details of a single DNS zone share.

Parameters

NameInTypeDescription
zone_id*pathstring—
shared_zone_id*pathstring—

Responses

  • 200Successful Response
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/zones/<zone_id>/shares/<shared_zone_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"
DELETE/api/v1/zones/{zone_id}/shares/{shared_zone_id}

Shared Zone Delete

Revokes a DNS zone share from a target project.

Parameters

NameInTypeDescription
zone_id*pathstring—
shared_zone_id*pathstring—

Responses

  • 204Successful Response
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X DELETE "https://api.nimbusnexus.net/api/v1/zones/<zone_id>/shares/<shared_zone_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"

Need to make a real call? Try these endpoints in the live Swagger UI →