RouterOS V7 - DNS Cache to Address list based on keywords

Hi,

I’m just wondering if anyone has a script they can share that will scan the local DNS cache and add entries into an address list based on keywords.
The script will need to check to see if the entry already exists on the list and to remove, re-add, or skip it if it does.
Any help is appreciated.

Thanks,

For each result for the keyword, just place the DNS name on address-list if it not already exist.

RouterOS keep IPs updated on address-list.