Saltar al contenido
NimbusNexus

Registros DNS

Un conjunto de registros es una tupla (name, type) dentro de una zona, con uno o más valores. www.example.com → A → 203.0.113.5 es un conjunto de registros A de un solo valor; los conjuntos multivalor (DNS round-robin) contienen N valores bajo un mismo id de conjunto.

Tipos de registro admitidos

TipoPara quéValor de ejemplo
ADirección IPv4203.0.113.5
AAAADirección IPv62001:db8::1
CNAMEAlias de otro nombreother.example.com.
MXServidor de correo10 mail.example.com.
TXTTexto libre — verificación, SPF, DKIM, DMARC"v=spf1 -all"
SPFPolítica SPF, en su propio tipo de registro"v=spf1 -all"
SRVUbicación de un servicio10 5 5060 sip.example.com.
NSDelegación a otros servidores de nombresns1.other.com.
CAAAutorización de autoridades de certificación0 issue "letsencrypt.org"
SSHFPHuella de la clave de host SSH4 2 <sha256-fingerprint>
NAPTRRegla de reescritura para buscar un servicio100 10 "U" "E2U+sip" "!^.*$!sip:[email protected]!" .
PTRPuntero de DNS inversoConsulta DNS inverso

No admitimos: ALIAS / ANAME (CNAME flattening en la raíz del dominio) — usa en su lugar el CNAME en un subdominio, o un registro A que apunte a una IP flotante en la raíz del dominio.

Registros multivalor

Puedes poner varios valores en un mismo conjunto de registros:

Text
www.example.com → A → 203.0.113.5
                  → 203.0.113.6
                  → 203.0.113.7

Los servidores de nombres sirven los tres valores en cada consulta, y los resolutores reparten las peticiones entre ellos — un balanceo de carga round-robin básico sin LB. Para un balanceo de carga de verdad, apuntarías el registro a la VIP de un balanceador de carga; los registros multivalor son para los casos en los que el cliente + el resolutor pueden gestionar el failover por su cuenta (la mayoría de los clientes HTTP modernos pueden).

TTLs

Cada conjunto de registros tiene un TTL en segundos — el tiempo que los resolutores guardan la respuesta en caché antes de volver a consultar. Fija ttl al crear o actualizar un conjunto de registros. Si no lo indicas, el conjunto de registros usa el TTL de su zona, que es 3600 (1 hora) salvo que fijes otro en la zona.

Elige TTLs más bajos mientras estés iterando activamente; súbelos cuando los registros se estabilicen, para reducir el volumen de consultas.

Próximos pasos

Reference

GET/api/v1/recordsets/

List All Recordsets

Lists all DNS recordsets owned by the calling project across zones.

Parameters

NameInTypeDescription
limitqueryinteger | null—
markerquerystring | null—
sort_dirquerystring | null—
sort_keyquerystring | null—
namequerystring | null—
typequery"A" | "AAAA" | "MX" | "CNAME" | "TXT" | "NS" | "SOA" | "SPF" | "SRV" | "PTR" | "CAA" | "SSHFP" | "NAPTR" | null—
ttlqueryinteger | null—
statusquerystring | null—
descriptionquerystring | null—
dataquerystring | null—

Responses

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

Example

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

List Zone Recordsets

Lists the recordsets contained in the specified DNS zone.

Parameters

NameInTypeDescription
zone_id*pathstringParent zone ID
limitqueryinteger | null—
markerquerystring | null—
sort_dirquerystring | null—
sort_keyquerystring | null—
namequerystring | null—
typequery"A" | "AAAA" | "MX" | "CNAME" | "TXT" | "NS" | "SOA" | "SPF" | "SRV" | "PTR" | "CAA" | "SSHFP" | "NAPTR" | null—
ttlqueryinteger | null—
statusquerystring | null—
descriptionquerystring | 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>/recordsets/" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/zones/{zone_id}/recordsets/

Create Recordset

Creates a new recordset within the specified DNS zone.

Parameters

NameInTypeDescription
zone_id*pathstringParent zone ID

Request body

FieldTypeDescription
name*stringRecordSet name (relative or FQDN)
type*"A" | "AAAA" | "MX" | "CNAME" | "TXT" | "NS" | "SOA" | "SPF" | "SRV" | "PTR" | "CAA" | "SSHFP" | "NAPTR"—
records*array of stringList of RR data strings
ttlinteger | nullTTL for the recordset
descriptionstring | nullHuman-readable description

Responses

  • 201Successful Response
  • 400Bad Request
  • 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>/recordsets/" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Example",
    "type": "A",
    "records": [
      "example"
    ]
  }'
GET/api/v1/zones/{zone_id}/recordsets/{recordset_id}

Get Recordset

Retrieves a single recordset by zone and recordset identifiers.

Parameters

NameInTypeDescription
zone_id*pathstringParent zone ID
recordset_id*pathstringRecordset ID
admin_domainquerystring | null—
admin_projectquerystring | 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>/recordsets/<recordset_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"
PUT/api/v1/zones/{zone_id}/recordsets/{recordset_id}

Update Recordset

Updates the records or attributes of an existing recordset.

Parameters

NameInTypeDescription
recordset_id*pathstringRecordset ID
zone_id*pathstringParent zone ID

Request body

FieldTypeDescription
ttlinteger | null—
descriptionstring | null—
recordsarray of string | nullList of RR data strings

Responses

  • 202Successful 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>/recordsets/<recordset_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
DELETE/api/v1/zones/{zone_id}/recordsets/{recordset_id}

Delete Recordset

Deletes a recordset from the specified DNS zone.

Parameters

NameInTypeDescription
recordset_id*pathstringRecordset ID
zone_id*pathstringParent zone ID
admin_domainquerystring | null—
admin_projectquerystring | null—

Responses

  • 202Successful 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>/recordsets/<recordset_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"

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