How to resolve DynDNS for SSTP-client

Hi,
I had established a SSTP connection between 2 RB951Ui, via internet. Both SSTP Server and Client have dynamic IPs, so I have to resolve dyndns on SSTP Client side in order to have the right connect-to IP of the server, every time IP changes on it, by ISP.

I use this script:

:local "vpn-interface-name" "sstp-out1"
:local "vpn-dns-name" "myresolvename.no-ip.info"
:local "new-vpn-ip" [:resolve $"vpn-dns-name"]
:local "current-vpn-ip" [/interface sstp-client get $"vpn-interface-name" connect-to]
:if ($"current-vpn-ip" != $"new-vpn-ip") do={ /interface sstp-client set [find name=$"vpn-interface-name"] connect-to=$"new-vpn-ip"}

It is able to change the IP on the sstp-client but if the ip remains the same on the sstp server, everytime the scheduler is executed sstp-client disconnect and reconnect. Any idea how to solve this issue???

Thanks in advanced.

SSTP accepts DNS server’s name for quite some time now.

Dear mrz,
Thank you for your direct answer. So, you mean that Im able to use my no-ip dns name, directly on Connect To field?

Yes.

I’ve just tried it and IT WORKS!!! PERFECT!!!