List Domain Records
Fetch all DNS records (A, AAAA, CNAME, MX, TXT, etc.) associated with a specific domain.
Endpoint
GEThttps://api.alinflow.com/v1/domain/records/list
Headers
| Header | Value | Required |
|---|---|---|
Authorization | Bearer <token> | Yes |
Content-Type | application/json | Yes |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
domain | string | Yes | The domain name to fetch records for (e.g., example.com). |
Example Request
curl -X GET "https://api.alinflow.com/v1/domain/records/list?domain=example.com" \ -H "Authorization: Bearer <YOUR_API_TOKEN>" \ -H "Content-Type: application/json"
Success Response
{
"success": true,
"message": "Records retrieved successfully",
"data": [
{
"name": "example.com.",
"type": "SOA",
"ttl": 3600,
"records": [
{
"content": "ns1.alinflow.com. hostmaster.alinflow.com. 2023112501 10800 3600 604800 3600",
"disabled": false
}
]
},
{
"name": "api.example.com.",
"type": "A",
"ttl": 300,
"records": [
{
"content": "192.0.2.1",
"disabled": false
}
]
},
{
"name": "example.com.",
"type": "MX",
"ttl": 300,
"records": [
{
"content": "10 mail.example.com.",
"disabled": false
}
]
}
]
}