Domaines, DNS, hebergement et e-mail chez un seul prestataire.
Caractéristiques
Ressources et support



Claude, Codex & co. manage DNS, domains and certificates directly, including DNS Doctor diagnostics.
This recipe fits production changes where you already know the RRID of the record and want to perform the update in a controlled way. The flow consists of snapshot, change, verification, and rollback.
rrid of the record you want to changeBefore every change, read the existing record and persist the current content. This snapshot is the basis for both verification and rollback.
curl --request GET \
--url 'https://api.regfish.com/dns/rr/4711' \
--header 'x-api-key: YOUR_API_KEY'A typical snapshot looks like this:
{
"success": true,
"response": {
"id": 4711,
"type": "A",
"name": "api.example.com.",
"data": "203.0.113.10"
}
}Once the original state has been captured, apply the update by RRID. This is more precise than automatic resolution by name and type.
curl --request PATCH \
--url 'https://api.regfish.com/dns/rr/4711' \
--header 'content-type: application/json' \
--header 'x-api-key: YOUR_API_KEY' \
--data '
{
"type": "A",
"name": "api",
"data": "203.0.113.20",
"ttl": 300,
"annotation": "change-ticket-2026-03-17"
}
'After the update, read the record again. That lets you confirm right away that the intended target value was written and that you touched the expected RRID.
curl --request GET \
--url 'https://api.regfish.com/dns/rr/4711' \
--header 'x-api-key: YOUR_API_KEY'Check in particular:
id stayed the samedata matches the intended target valuettl and optional annotations were written as expectedIf the new value is wrong or causes a follow-up issue, restore the previous state with the same fields.
curl --request PATCH \
--url 'https://api.regfish.com/dns/rr/4711' \
--header 'content-type: application/json' \
--header 'x-api-key: YOUR_API_KEY' \
--data '
{
"type": "A",
"name": "api",
"data": "203.0.113.10",
"ttl": 300,
"annotation": "rollback-change-ticket-2026-03-17"
}
'If you do not have the RRID stored and exactly one record can be identified by name and type, you can use the auto endpoint instead. For production changes involving multiple similar records, the RRID-based path is more robust.
curl --request PATCH \
--url 'https://api.regfish.com/dns/rr' \
--header 'content-type: application/json' \
--header 'x-api-key: YOUR_API_KEY' \
--data '
{
"type": "A",
"name": "api.example.com.",
"data": "203.0.113.20"
}
'type, name, ttl, and dataThis workflow treats DNS updates like controlled operational changes rather than single write calls. That reduces risk and makes rollback immediate when something goes wrong.
L'API DNS Regfish est une excellente solution pour les développeurs qui souhaitent automatiser les domaines et les zones DNS. Faites partie de la communauté et bénéficiez de l'automatisation DNS. L'API DNS est disponible gratuitement pour chaque client Regfish.