Hi!
I try update RB333 pptp client with ddns change-ip name and only i get is message “Failure”.
This code results with error.
:global vpnInterfaceName “temp“
:global vpnDnsName “www.google.com”
:global newVpnIp [:resolve $vpnDnsName]
Does anyone have script which works with 3.x please?
Sorry on my bad English!
Miro
Now script working perfectly!
I have to set primary and secondary DNS
/ip dns set primary-dns
/ip dns set secondary-dns
And this is a script if anyone need something similar
:global vpnInterfaceName “PPTP-NAME”
:global vpnDnsName “YOUR.SITE.NAME”
:global newVpnIp [:resolve $vpnDnsName]
:global currentVpnIp [/interface pptp-client get $vpnInterfaceName connect-to]
:if ($currentVpnIp != $newVpnIp) do={/interface pptp-client set [find name=$vpnInterfaceName] connect-to=$newVpnIp}
Thank You for reading my post!
Miro