Community discussions

MikroTik App
 
done411
newbie
Topic Author
Posts: 27
Joined: Wed Jan 16, 2019 10:36 am

DDNS Script don't work since update to 7.13

Fri Jan 05, 2024 12:08 pm

Hi,

i have used a DDNS script on 2 routers for years but since the update to 7.13 the script don't work.

I hope someone can point out whats wrong or what changed in 7.13
##############Script Settings##################
:local DYNIPUser "xxxxxx"
:local DYNIPPass "xxxxxx"
:local WANInter "pppoe-out"
:local DYNIPDomain "xxx.xxx-xxx.com"
###############################################

:local IpCurrent [/ip address get [find interface=$WANInter] address];
:for i from=( [:len $IpCurrent] - 1) to=0 do={
 :if ( [:pick $IpCurrent $i] = "/") do={
  :local NewIP [:pick $IpCurrent 0 $i];
  :if ([:resolve $DYNIPDomain] != $NewIP) do={
  /tool fetch mode=https url="http://carol.selfhost.de/update?username=$DYNIPUser&password=$DYNIPPass&myip=$NewIP" keep-result=no
  :log info "Selfhost Update: $DYNIPDomain - $NewIP"
  }
 }
}
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12033
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: DDNS Script don't work since update to 7.13

Fri Jan 05, 2024 12:14 pm

Downgrade or wait for the final version 7.14.
Since you don't bother reading the relevant topics before upgrade, there's no point in wasting my time explaining why.
 
done411
newbie
Topic Author
Posts: 27
Joined: Wed Jan 16, 2019 10:36 am

Re: DDNS Script don't work since update to 7.13

Fri Jan 05, 2024 12:32 pm

I read the changelog of a stable os version and i couldn't find any change regarding scripting or change of interface names except WiFi.
Save your time and thanks anyway!
 
optio
Long time Member
Long time Member
Posts: 699
Joined: Mon Dec 26, 2022 2:57 pm

Re: DDNS Script don't work since update to 7.13  [SOLVED]

Fri Jan 05, 2024 12:39 pm

/tool fetch mode=https url="https://carol.selfhost.de/update?username=$DYNIPUser&password=$DYNIPPass&myip=$NewIP" keep-result=no
 
done411
newbie
Topic Author
Posts: 27
Joined: Wed Jan 16, 2019 10:36 am

Re: DDNS Script don't work since update to 7.13

Fri Jan 05, 2024 12:48 pm

That worked! Thanks a lot!!!
 
na6cet
just joined
Posts: 2
Joined: Mon Aug 21, 2023 11:42 am

Re: DDNS Script don't work since update to 7.13

Tue Jan 09, 2024 8:13 am

I'm having a similar problem, I thought it might be related to this from the 7.13 release notes?

fetch - require "ftp" user policy;

Who is online

Users browsing this forum: Bing [Bot] and 4 guests