Create DNS record
fqdn specified in the name parameter.Authentication
Request body
{
"type": "A",
"name": "api.example.com.",
"data": "203.0.113.10",
"ttl": 300
}Fields
Request example
curl --request POST \
--url 'https://api.regfish.com/dns/rr' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'content-type: application/json' \
--data '{
"type": "A",
"name": "api.example.com.",
"data": "203.0.113.10",
"ttl": 300
}'Responses
{
"success": true,
"code": 0,
"response": {
"type": "A",
"name": "www.example.com.",
"data": "12.12.12.12",
"id": 1,
"auto": true,
"active": true,
"ts_created": 1,
"ts_updated": 1
}
}{
"success": false,
"message": "Invalid request",
"error": "Invalid request"
}{
"success": false,
"message": "Unauthorized",
"error": "Unauthorized"
}{
"success": false,
"message": "No matching DNS zone found",
"error": "No matching DNS zone found"
}{
"success": false,
"message": "DNS record creation violates a zone constraint",
"error": "DNS record creation violates a zone constraint"
}{
"success": false,
"message": "Rate limit for ACME platform credentials (scope `acme-dns-challenge`): calls per minute, and distinct customers per day. Ordinary customer keys never receive this status on this endpoint.",
"error": "Rate limit for ACME platform credentials (scope `acme-dns-challenge`): calls per minute, and distinct customers per day. Ordinary customer keys never receive this status on this endpoint."
}{
"success": false,
"message": "Unexpected error",
"error": "Unexpected error"
}Become part of the community
The regfish DNS API is a great solution for developers who want to automate domains and DNS zones. Become part of the community and benefit from DNS automation. The DNS API is available free of charge to every regfish customer.