add_dns_static
Add a static DNS record to MikroTik RouterOS, returning IPv4 addresses, CNAME aliases, or regex-matched hostnames. Configure TTL and comments to control local name resolution.
Instructions
Add a static DNS entry.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "add_dns_static"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | 1d | |
| name | No | Hostname to answer for, e.g. 'nas.lan'. | |
| cname | No | Return a CNAME instead of an address. | |
| regexp | No | Match hostnames by regex instead of an exact name. | |
| address | No | IPv4 address to return. | |
| comment | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |