Dyndns und ddclient

Cronjob um sich regelmäßig mit dem Internet zu verbinden:

*/12 * * * * /bin/ping -c 1 www.hoadl.net 2>&1 >/dev/null

ddclient downloaden und installieren: www.dyndns.org ->dynDNS->clients->ddclient

cp /tmp/ddclient-3.6.2/ddclient /usr/sbin
cp /tmp/ddclient-3.6.2/sample-etc_ddclient.conf /etc/ddclient.conf

/etc/ddclient.conf anpassen:

syslog=yes # log update msgs to syslog
mail=root # mail update msgs to root
pid=/var/run/ddclient.pid # record PID in file.
use=if, if=ppp0 # via interfaces

login=LOGIN
password=PASSWORT # default login
server=members.dyndns.org, \
protocol=dyndns2, \
DOMAIN.DYNDNS.ORG

Anmeldung manuell testen, dazu wird jetztige IP-Adresse benötigt (mit ifconfig auslesen)

/usr/sbin/ddclient -ip XXX.XXX.XXX.XXX

Anmeldung automatisieren

cp /tmp/ddclient-3.6.2/sample-etc_ppp_ip-up.local /etc/ppp/ip-up.local