Why doesn't work: script dns cache - address list?
Posted: Sat Sep 20, 2008 9:37 am
{
:foreach k in=[/ip dns cache find] do={
:if ([:find [/ip dns cache get $k name] "res.sriwijaya-air-online.com"] > 0) do={
:log info ("sriwijaya: " . [/ip dns cache get $k name] . " (ip address " . [/ip dns cache get $k address] . ")")
/ip firewall address-list add address=[/ip dns cache get $k address] list=list_ticketing disabled=no comment="res.sriwijaya-air-online.com"
}
}
}
what that script doesn't work.. but if i change it with google.com, klikbca.com then it works..
why?
:foreach k in=[/ip dns cache find] do={
:if ([:find [/ip dns cache get $k name] "res.sriwijaya-air-online.com"] > 0) do={
:log info ("sriwijaya: " . [/ip dns cache get $k name] . " (ip address " . [/ip dns cache get $k address] . ")")
/ip firewall address-list add address=[/ip dns cache get $k address] list=list_ticketing disabled=no comment="res.sriwijaya-air-online.com"
}
}
}
what that script doesn't work.. but if i change it with google.com, klikbca.com then it works..
