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
Code: Select all
[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] >
]##### 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!