Reply To: DynDNS Update for particular net interface

Home Page Forums Network Management Request a new feature DynDNS Update for particular net interface Reply To: DynDNS Update for particular net interface

#53629

faximilian
Member

in order to get the IP adress of the local interface you could use

IP=`ifconfig ppp0 | awk ‘/inet addr/{print substr($2,6)}’`

instead of the code below in your ddns2 script

# IP=`wget –timeout=15 -t 1 -O – -o /dev/null $CHECKIP_URL |egrep ‘[0123456789]{1,3}.[0123456789]{1,3}.[0123456789]{1,3}.[0123456789]{1,3}’|head -1|sed -r ‘s/.* ([0123456789]{1,3}.[0123456789]{1,3}.[0123456789]{1,3}.[0123456789]{1,3}).*/1/’`

Actually this only a workaround.

REMARK: EVEN THIS IS NOT A WORKAROUND BECAUSE DYNDNS USES THE IP FROM WHICH THE COMPUTER CONNECTS TO THE SERVER AS THE DYNAMIC IP

I am still looking for a possibility to access a particular website (checkip.dyndns.com) through a defined interface while using NetBalancer. Defining a rule does not work because dyndns.com uses dynamic ip addresses for their servers…