Add a DNS record
add_dns_recordAdds a DNS record to a custom domain, e.g. MX and TXT records to set up an email provider, or TXT/CNAME verification records. Types: A, AAAA, CNAME, MX, TXT, SRV. For MX give the mail server hostname as value plus priority. For SRV give "priority weight port target" as value.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site": "<site>",
"type": "<type>",
"name": "<name>",
"value": "<value>"
},
"name": "add_dns_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | Optional time-to-live in seconds. | |
| name | Yes | Record name relative to the domain: "@" for the domain itself, or e.g. "www", "_dmarc", "selector1._domainkey". | |
| site | Yes | The website's domain, as shown by list_sites (e.g. "example.com" or "name.hostingfor.ai"). | |
| type | Yes | DNS record type. | |
| value | Yes | IP address (A/AAAA), hostname (CNAME/MX), text (TXT, without surrounding quotes), or "priority weight port target" (SRV). | |
| priority | No | MX priority (lower is preferred). Required for MX. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| added | No | ||
| record | No | ||
| warnings | No |