add_dns_static
Create a static DNS entry on MikroTik RouterOS to resolve names to IP addresses, aliases, or mail servers. Supports A, AAAA, CNAME, MX, SRV, and TXT records with TTL and comment options.
Instructions
Adds a static DNS entry.
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 |