https://pasteboard.co/K4Vqitv.jpg
my script:
Code: Select all
:foreach i in=[/ip dns cache find name~"youtube"] do={ :do { /ip firewall address-list add list=YouTube address=[/ip dns cache get $i address]; } on-error={} }
:foreach i in=[/ip dns cache find name~"youtube"] do={ :do { /ip firewall address-list add list=YouTube address=[/ip dns cache get $i name]; } on-error={} }