update dns static from external url

Hi List

I am new in mikrotik scripting and try to find how to solve my problem.
I have url domain.tld/hostdump with pairs of values:
domain ip
domain2 ip
Can you help me how can I fetch external url and iterate thru each line and execute

ip dns static> add name=$domain address=$ip

James