Update DNS records of specific domain. This will replace all existing DNS records of the domain.
Request
Add parameter in header API-key
Example:API-key: ********************
or
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
or
Body Params application/json
{
"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.my.host ~all",
"ttl": 900
}
]
}
Request Code Samples
curl --location --request PUT 'https://mijn.host/api/v2/domains/domain.com/dns' \
--header 'Accept: application/json' \
--header 'User-Agent: my-application/1.0.0' \
--header 'API-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"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.my.host ~all",
"ttl": 900
}
]
}'
Responses
application/json
{
"status": 0,
"status_description": "string"
}
Modified at 2026-11-13 09:40:27