add_dns_static
Add a static DNS entry to MikroTik RouterOS for mapping names to IPs, CNAMEs, MX, or SRV records, enabling local DNS resolution and routing.
Instructions
Adds a static DNS entry.
Notes:
regexp: a regular expression the name must match. A regexp entry has no name, so name is
ignored when regexp is given (RouterOS refuses both: "only name or regexp allowed").
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 |