Hi there
i am trying to grep windows update ips from dns cache. can anyone help me out !
:foreach i in= /ip firewall address-list remove [/ip firewall address-list find list=windowsupdate][/ip dns cache find] do={n;log find [/ip dns cache get $i name] "windowsupdate"} > 0) do={info (windowsupdate:[ /ip dns cache get $i name] [/ip address {/ip firewall address-list add }] address [/ip dns cache get \$i address\] list=windowsupdate}