Skip to content

MCP for AI agents30 toolsYour AI agent works with the rights you give it. Registering, transferring and cancelling stay in the customer area. If you give it the right, it can retrieve the transfer code of a domain: at most 3 retrievals per domain and day, and every retrieval is logged.

Read the MCP docs
DNS automation
v1.6.2
Download OpenAPI

List DNS zones

List DNS zones with SOA data, delegated nameservers, DNSSEC status, and record counts.
GET
/dns/zones
DNSZones

Authentication

x-api-key

Request example

GET
curl --request GET \
  --url 'https://api.regfish.com/dns/zones' \
  --header 'x-api-key: YOUR_API_KEY'

Responses

200
DNS zone list
application/jsondnsZoneSummaryResponse
Response example 200
{
  "success": true,
  "code": 0,
  "response": [
    {
      "domain": "www.example.com",
      "origin": "www.example.com.",
      "active": true,
      "signed": true,
      "using_regfish_nameservers": true,
      "delegation_nameservers": [
        {}
      ],
      "soa": {
        "primary_nameserver": "www.example.com.",
        "mailbox": "www.example.com.",
        "serial": 1,
        "refresh": 1,
        "retry": 1,
        "expire": 1,
        "minimum": 1,
        "ttl": 1
      },
      "record_count": 1,
      "dnssec_state": "active"
    }
  ]
}
401
Unauthorized
application/jsonError
Response example 401
{
  "success": false,
  "message": "Unauthorized",
  "error": "Unauthorized"
}
500
Unexpected error
application/jsonError
Response example 500
{
  "success": false,
  "message": "Unexpected error",
  "error": "Unexpected error"
}
Community

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.