Skip to main content
GET
/
domains
/
{domain}
/
dns
List DNS records
curl --request GET \
  --url https://rdp.sh/api/v1/domains/{domain}/dns \
  --header 'Authorization: <api-key>'
[
  {
    "id": 123,
    "name": "<string>",
    "value": "<string>",
    "ttl": 123,
    "priority": 123,
    "created_at": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Path Parameters

domain
integer
required

Domain ID

Response

The DNS records for the domain.

id
integer
Example:

42

type
enum<string>
Available options:
A,
AAAA,
CNAME,
MX,
TXT,
NS,
SRV,
CAA
Example:

"A"

name
string

Record name. Use @ for the apex/root.

Examples:

"@"

"www"

value
string
Example:

"185.241.208.160"

ttl
integer
Example:

3600

priority
integer | null

Priority, used by MX and SRV records.

Example:

10

created_at
string
Example:

"2025-01-01T00:00:00.000000Z"