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.
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 |