Manage DNS Entry
manage_dns_entryAdd or remove static DNS entries on MikroTik routers. Idempotent operation prevents duplicate records.
Instructions
Add or remove a static DNS entry. Idempotent by name+type: add returns already_exists if the same record already exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routerId | Yes | Target router identifier from the router registry | |
| action | Yes | Action to perform | |
| name | Yes | Hostname for the DNS record (e.g. server.example.com) | |
| type | No | DNS record type | A |
| address | No | IP address (required for A records) | |
| cname | No | Target hostname (required for CNAME records) | |
| text | No | Text value (required for TXT records) | |
| ttl | No | TTL value (e.g. 1d, 00:05:00) | |
| comment | No | Optional comment | |
| disabled | No | Whether the entry should be disabled | |
| dryRun | No | Preview changes without applying | |
| confirmationToken | No | Token from a prior APPROVAL_REQUIRED response. Re-submit the identical call with this token to confirm the destructive action. |