Retrieve DNS records of specific domain.
Request
Add parameter in header API-Key
Example:API-Key: ********************
Request Code Samples
curl --location --request GET 'https://mijn.host/api/v2/domains/domain.com/dns' \
--header 'Accept;' \
--header 'User-Agent: my-application/1.0.0' \
--header 'API-Key: <api-key>'
Responses
application/json {
"status": 200,
"status_description": "Request successful",
"data": {
"domain": "domain.com",
"records": [
{
"type": "A",
"name": "domain.com.",
"value": "135.226.123.12",
"ttl": 900
},
{
"type": "AAAA",
"name": "domain.com.",
"value": "2009:21d0:322:6100::5:c92b",
"ttl": 900
},
{
"type": "MX",
"name": "domain.com.",
"value": "10 mail.domain.com.",
"ttl": 900
},
{
"type": "TXT",
"name": "domain.com.",
"value": "v=spf1 include:spf.mijn.host ~all",
"ttl": 900
}
]
}
}
Modified at 2024-09-02 14:01:29