Hi
I have two Internet links plugged into my CCR1009
One is declared as a default route, while the other is
the default route for a specific set of route mangled
traffic.
Up till now the following script sufficed to update the
current public IP address:
http://wiki.mikrotik.com/wiki/Dynamic_DNS_Update_Script_for_dynDNS
Does anyone know how I could modify it so as to have
it use a different route to reach the checkIP link ? Without
of course disrupting the current (active) default route ?
Thanks
yann
You like fast response and giving solution?
Using this:
http://forum.mikrotik.com/t/ddns-script-for-no-ip-dyndns-ipchange/79060/1
You can do that:
set myip.dnsomatic.com to be reachable on route 2,
run this each reasonable time:
/tool fetch mode=http keep-result=yes url="http://myip.dnsomatic.com/index.html" dst-path="CURRip";
/delay delay-time=2s;
:global CURRip value=[:toip [/file get "CURRip" value-name=contents]];
/delay delay-time=2s;
/file remove "CURRip";
on global CURRip variable is present the IP value you want…
rextended:
You like fast response and giving solution?
Using this:
http://forum.mikrotik.com/t/ddns-script-for-no-ip-dyndns-ipchange/79060/1
You can do that:
set myip.dnsomatic.com to be reachable on route 2,
run this each reasonable time:
/tool fetch mode=http keep-result=yes url="http://myip.dnsomatic.com/index.html" dst-path="CURRip";
/delay delay-time=2s;
:global CURRip value=[:toip [/file get "CURRip" value-name=contents]];
/delay delay-time=2s;
/file remove "CURRip";
on global CURRip variable is present the IP value you want…
You don’t need to fetch a file, use this:
:global CURRip [:resolve myip.opendns.com server=208.67.222.222];