add_dns_static
Add a static DNS entry to MikroTik RouterOS for mapping names to IP addresses, CNAMEs, MX, or SRV records, including optional TTL and comments.
Instructions
Adds a static DNS entry.
Notes:
regexp: a regular expression the name must match. A regexp entry has no name, so name is
ignored when regexp is given (RouterOS refuses both: "only name or regexp allowed").
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": {
"name": "<name>"
},
"name": "add_dns_static"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | ||
| name | Yes | ||
| text | No | ||
| cname | No | ||
| device | No | ||
| regexp | No | ||
| address | No | ||
| comment | No | ||
| disabled | No | ||
| srv_port | No | ||
| srv_target | No | ||
| srv_weight | No | ||
| mx_exchange | No | ||
| srv_priority | No | ||
| mx_preference | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |