Skip to content

Get DNS records

GET /dns/{domain}/rr

Operation 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.

NameTypeRequiredDescription
domainfqdn_relaxedyes
StatusTypeDescription
200recordResponseThe records of the zone
400ErrorInvalid request
401ErrorUnauthorized
404ErrorDNS zone or records not found
500ErrorUnexpected error
FieldTypeRequiredDescription
successbooleanyesSuccess indicator
codeintegernoResponse/Error Code
responserecordResponse[]no
Terminal window
curl -X GET "https://api.regfish.com/dns/<domain>/rr" \
-H "x-api-key: $REGFISH_API_KEY"

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.