I am looking for a script which would resolve a DNS name and add the resulting IP addresses to the routing table. I could use something like
Code: Select all
add comment=test11 dst-address=[:resolve api.XXX.YYY] gateway=10.4.0.33 routing-table=main
PS I have tried the /ip/firewall/address-list + route-mark solution but it did not work well for me. It works, but for some reason the response from api.XXX.YYY is much slower in this case (in comparison with the situation when the IPs are simply added as static /32 routes to the main table). Sorry I do not know the reason.
Thank you very much for any advice.