Community discussions

MikroTik App
 
barracuda
newbie
Topic Author
Posts: 38
Joined: Thu Jul 09, 2015 12:41 am

Problem with dynamic dnsexit update script

Mon Aug 09, 2021 3:52 pm

Hello,
Few days ago my old script no longer work.I have this script for years but now when I run it I have this message
[admin@MikroTik] > /system script run dnsexit
      status: finished
  downloaded: 0KiBC-z pause]
       total: 0KiB
    duration: 1s

  status: failed

failure: closing connection: <503 Service Unavailable> 67.214.175.75:80 (5)
[admin@MikroTik] > /system script run dnsexit
  status: failed

failure: closing connection: <503 Service Unavailable> 67.214.175.75:80 (4)
[admin@MikroTik] > 
The script which one I use:

]##### Script Settings #####
:local username "xxxxx";
:local password "221211";
:local hostname "my host name";
:local WANInter "pppoe-out1";

###########################

:global IpCurrent [/ip address get [find interface=$WANInter] address];
:for i from=( [:len $IpCurrent] - 1) to=0 do={
:if ( [:pick $IpCurrent $i] = "/") do={
:global NewIP [:pick $IpCurrent 0 $i];
:if ([:resolve $hostname] != $NewIP) do={
/tool fetch mode=http url="http://www.dnsexit.com/RemoteUpdate.sv? ... yip=$NewIP" keep-result=no
:log info "DNSEXIT Update: $hostname - $NewIP"
} else={
:log info "DNSEXIT: don't need changes";
}
}
}


but when I update it via webbrowser with this command the update is successfull:

https://update.dnsexit.com/RemoteUpdate ... v4-or-ipv6

Now I don't know how I can change the script that will work.Can anyone help to tell me how can I change script or if anyone else have a working script
to share it?
Thanks!
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Problem with dynamic dnsexit update script

Mon Aug 09, 2021 5:23 pm

The solution is under your eyes.
Play "find the differences" between the URL in the script and that of the browser...
 
barracuda
newbie
Topic Author
Posts: 38
Joined: Thu Jul 09, 2015 12:41 am

Re: Problem with dynamic dnsexit update script

Mon Aug 09, 2021 5:37 pm

I try before with your suggestion but not work
I will try again.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Problem with dynamic dnsexit update script

Mon Aug 09, 2021 5:44 pm

I do not have that service for try, but if on the browser that work:
https://update.dnsexit.com/RemoteUpdate ... v4-or-ipv6

change from

before code

/tool fetch mode=http url="http://www.dnsexit.com/RemoteUpdate.sv?...
to

after code

/tool fetch url="https://update.dnsexit.com/RemoteUpdate.sv?....
note the removed mode=http, do not set mode=https
 
barracuda
newbie
Topic Author
Posts: 38
Joined: Thu Jul 09, 2015 12:41 am

Re: Problem with dynamic dnsexit update script

Mon Aug 09, 2021 8:19 pm

Thank you for your suggestion but with browser work,when I replace url in script not work.
If I put this command in script works to,But I'm afraid I will not get Ban with a constant update.
Last edited by barracuda on Mon Aug 09, 2021 8:39 pm, edited 1 time in total.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Problem with dynamic dnsexit update script

Mon Aug 09, 2021 8:22 pm

you have published the username and password....
remove & change password...
 
barracuda
newbie
Topic Author
Posts: 38
Joined: Thu Jul 09, 2015 12:41 am

Re: Problem with dynamic dnsexit update script

Mon Aug 09, 2021 8:39 pm

Uuupppsss,thanks!
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Problem with dynamic dnsexit update script

Mon Aug 09, 2021 8:40 pm

try to run the script without the &myip.... part
you have more than one IP on pppoe-out1?

I haved test the script, i have 6.47.10
If you haved see... for me has worked...
 
barracuda
newbie
Topic Author
Posts: 38
Joined: Thu Jul 09, 2015 12:41 am

Re: Problem with dynamic dnsexit update script

Mon Aug 09, 2021 9:07 pm

Yes,without the &myip.... part works fine.I have only one IP on pppoe-out1.
Without your help I would not do it.
Thanx again!

Who is online

Users browsing this forum: No registered users and 18 guests