Hi Guy’s
Could someone please help my on a easy script to load all my static dns entries on my firewall address list.
Unfortunate, I’m not quite clued up on scripting.
Thanks in advance
Hi Guy’s
Could someone please help my on a easy script to load all my static dns entries on my firewall address list.
Unfortunate, I’m not quite clued up on scripting.
Thanks in advance
try this
foreach i in=[ip dns static find] do={
local address [ip dns static get value-name=address $i]
#change “dns” for your address-list name
/ip firewall address-list add list=dns address=$address
}
Thanks for the reply.
Will give it a try.
How can I prevent duplicate entries when running a schedule and only
to add one address if multiple names that points to one address exist.
Thanks in advance