Get DNS records
GET /dns/{domain}/rrOperation ID: GetRecordsByDomain
List all DNS records stored in the zone for the specified domain, except the apex NS records (see the nameserver endpoints). Types the API does not write (NS, PTR, HINFO, NAPTR, RP) come back as stored.
Path parameters
Section titled “Path parameters”| Name | Type | Required | Description |
|---|---|---|---|
domain | fqdn_relaxed | yes |
Responses
Section titled “Responses”| Status | Type | Description |
|---|---|---|
200 | recordResponse | The records of the zone |
400 | Error | Invalid request |
401 | Error | Unauthorized |
404 | Error | DNS zone or records not found |
500 | Error | Unexpected error |
Response body
Section titled “Response body”| Field | Type | Required | Description |
|---|---|---|---|
success | boolean | yes | Success indicator |
code | integer | no | Response/Error Code |
response | recordResponse[] | no |
Example
Section titled “Example”curl -X GET "https://api.regfish.com/dns/<domain>/rr" \ -H "x-api-key: $REGFISH_API_KEY"Build a request
Section titled “Build a request”Fill in values: the call below updates as you type. Nothing is sent: the API does not currently allow browser requests from this domain (CORS). The API key is not stored.