add_dns_static
Adds a static DNS record to a MikroTik router, mapping hostnames to IPs, CNAMEs, MXs, or SRVs with optional TTL and comment.
Instructions
Adds a static DNS entry.
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 |