Raw DNS lookup via DoH
GET /api/v1/lookup/{name}/{type}Path parameters
Section titled “Path parameters”| Name | Type | Required | Description |
|---|---|---|---|
name | string | yes | DNS name; an IP address is accepted for type PTR. |
type | string | yes | - |
Responses
Section titled “Responses”| Status | Type | Description |
|---|---|---|
200 | LookupResult | DNS answer |
400 | object | Error |
429 | object | Error |
502 | object | Error |
Response body
Section titled “Response body”| Field | Type | Required | Description |
|---|---|---|---|
api | string | no | - |
name | string | no | - |
type | string | no | - |
typeCode | integer | no | - |
status | integer | no | DNS RCODE (0 NOERROR, 3 NXDOMAIN, …) |
ad | boolean | no | DNSSEC-validated by the resolver |
answers | object[] | no | - |
Example
Section titled “Example”curl -X GET "https://dns-doctor.com/api/v1/lookup/<name>/<type>" \ -H "Authorization: Bearer $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.