I need RB750gl v5.16 changeip script
Thanks in advance
Hi,
Can you explain what you want?
Dynamic DNS Update Script for ChangeIP.com
that work on routerOS v5.16
The scripts for ChangeIP isnt working since 28/09/2013, date of the site change.
Anyone have the solution ?
Note that I am grabbing a dynamic address (which is assigned to the ether1-gateway interface by the ISP):
/ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 ;;; default configuration
xxx/24 xxx bridge-local
1 xxx/24 xxx ether1-gateway
2 D xxx/22 xxx ether1-gateway
Here is the script (based on http://wiki.mikrotik.com/wiki/Dynamic_DNS_Update_Script_for_ChangeIP.com):
:global ddnsuser "xxx"
:global ddnspass "xxx"
:global ddnshost "xxx"
:global ddnsinterface "xxx"
:global ddnsip [/ip address get [/ip address find where dynamic] address]
:global ddnslastip
#:if ([:len [/interface find name=$ddnsinterface]] = 0 ) do={ :log info "DDNS: No interface named $ddnsinterface, please check configuration." }
:if ([ :typeof $ddnslastip ] = "nothing" ) do={ :global ddnslastip 0.0.0.0/0 }
:if ([ :typeof $ddnsip ] = "nothing" ) do={
:log info ("DDNS: No ip address present on " . $ddnsinterface . ", please check.")
} else={
:if ($ddnsip != $ddnslastip) do={
:log info "DDNS: Sending UPDATE!"
:log info [ :put [/tool dns-update name=$ddnshost address=[:pick $ddnsip 0 [:find $ddnsip "/"] ] key-name=$ddnsuser key=$ddnspass ] ]
:global ddnslastip $ddnsip
} else={
:log info "DDNS: No changes necessary."
}
}