How to redirect dst. address to a new dns update ip?

Hi, I’ve already run changeip dns update script and do /ip firewall nat rule:
add action=dst-nat chain=dstnat comment=“dst nat linux http” disabled=no
dst-address=x.x.x.x dst-port=80 protocol=tcp to-addresses=10.6.1.1
to-ports=80. My question is how do I redirect dst. address to a new dns update ip?

you could add nat in the changeip script.
e.g. like this:

:if ($ddnsip != $ddnslastip) do={

    :log info "DDNS: Sending UPDATE!"
    :log info [ :put [/tool dns-update name=$ddnshost address=[:pick $ddnsip 0 [:find $ddnsip "/"] ] key-name=$ddnsuser key=$ddnspass ] ]
    /ip firewall nat set <set right id of rule> dst-address=$ddnsip
    :global ddnslastip $ddnsip

Thanks a lot I really appreciate it.