clear_dns_cache
Flush a MikroTik device's DNS resolver cache to clear all cached DNS answers. Preview current cached-entry count with confirm=False, then flush with confirm=True.
Instructions
Flush the device's DNS resolver cache (/ip/dns/cache/flush) -
no arguments, clears every cached DNS answer at once.
Benign (only cached answers are cleared - repopulated on the next resolution - never device configuration), but still guarded/ confirm-gated like every other write tool here.
WRITE tool, guarded: blocked entirely unless the server is running with MIKROTIK_ALLOW_WRITE=true. Call with confirm=False (the default) to preview the current cached-entry count without changing anything; call again with confirm=True to actually flush it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| device_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||