add_dns_regexp
Adds a DNS regexp entry on a MikroTik device, mapping matching domain patterns to a specified IP address with optional TTL, comment, and disabled state.
Instructions
Adds a DNS regexp 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": {
"regexp": "<regexp>",
"address": "<address>"
},
"name": "add_dns_regexp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | 1d | |
| device | No | ||
| regexp | Yes | ||
| address | Yes | ||
| comment | No | ||
| disabled | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |