curl --request POST \
--url https://dns-service.iran.liara.ir/api/v1/zones/{zone}/dns-records \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"type": "<string>",
"ttl": 123,
"contents": [
{}
]
}
'{
"status": "<string>",
"data": {
"id": "<string>",
"name": "<string>",
"type": "<string>",
"ttl": 123,
"contents": [
{}
]
}
}Creates a new dns record, returns the dns record on creation
curl --request POST \
--url https://dns-service.iran.liara.ir/api/v1/zones/{zone}/dns-records \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"type": "<string>",
"ttl": 123,
"contents": [
{}
]
}
'{
"status": "<string>",
"data": {
"id": "<string>",
"name": "<string>",
"type": "<string>",
"ttl": 123,
"contents": [
{}
]
}
}Enter the token with the Bearer: prefix, e.g. "Bearer abcde12345". #
The name of the zone to create dns record
The name of dns record, "@" for zone name(root level), "*" for wild card and any valid value with RFC 1123
The type of dns record, valid values: [A, AAAA, TXT, CNAME, ALIAS, MX, SRV, SPF, PTR]
The ttl of dns record, is not required, valid values: [120, 180, 300, 600, 900, 1800, 3600, 7200, 18000, 43200, 86400, 172800, 432000]
Array of content of dns record, change base on type of dns record