PDA

View Full Version : Inadyn



zmeura
07-10-08, 16:02
Mult timp nu am reusit sa pun in functiune inadyn-ul din Dream cu noua adresa pe care mi-am facut-o la no-ip,in mare parte si pentru ca nu m-am stresat prea tare.Bineinteles ca era nevoie doar de o cautare pe google:

How to configure inadyn

INADYN - Simple DYNAMIC DNS client.

INADYN is a dynamic DNS client. That is, it maintains the IP address of a host name. It periodically checks whether the IP address stored by the DNS server is the real current address of the machine that is running INADYN.

Features:

supports the following dynamic DNS services:
dyndns.org (in all three flavors: dynamic, static, custom)
freedns.afraid.org
zoneedit.com
no-ip.com
The script can be found here: /var/script/inadyn_script.sh

Open the file and you will see:

#!/bin/sh
DAEMON=/bin/inadyn
NAME=inadyn
DESC="InaDyn dynamic DNS Client"
INADYN_ON=0
INADYN_USERNAME=xxxxxx@gmail.com
INADYN_PASSWORD=xxxpass
INADYN_ALIAS=xxxxxx.no-ip.info
UPDATE_PERIOD=60000
LOG_FILE_ON=1
LOG_NAME=/var/log/inadyn.log
DYN_SYSTEM_ON=1
DYN_SYSTEM=dyndns@dyndns.org


test -f $DAEMON || exit 0

set -e

case "$1" in
start)
if [ $INADYN_ON -ne 0 ]; then
ARGS="-u $INADYN_USERNAME -p $INADYN_PASSWORD -a $INADYN_ALIAS --update_period $UPDATE_PERIOD"
if [ $LOG_FILE_ON = 1 ]; then
ARGS="$ARGS --log_file $LOG_NAME"
fi
if [ $LOG_FILE_ON = 2 ]; then
ARGS="$ARGS --syslog"
fi
if [ $DYN_SYSTEM_ON -ne 0 ]; then
ARGS="$ARGS --dyndns_system $DYN_SYSTEM"

fi
echo -n "starting $DESC: $NAME... "
start-stop-daemon -S -b -n $NAME -a $DAEMON -- $ARGS
echo "done."
fi
;;
stop)
echo -n "stopping $DESC: $NAME... "
start-stop-daemon -K -n $NAME
[ -e $LOG_NAME ] && rm -rf $LOG_NAME
echo "done."
;;
restart)
echo "restarting $DESC: $NAME... "
$0 stop
$0 start
echo "done."
;;
reload)
echo -n "reloading $DESC: $NAME... "
killall -HUP $(basename ${DAEMON})
echo "done."
;;
*)
echo "Usage: $0 {start|stop|restart|reload}"
exit 1
;;
esac

exit 0


You have to change:

INADYN_ON=1

INADYN_USERNAME=xxxxxx@gmail.com your login name you used to open your account at dyndns.com or no-ip.com

INADYN_PASSWORD=xxxpass password for above

INADYN_ALIAS=xxxxxx.no-ip.info this is your hostname at dyndns.com or no-ip.com

UPDATE_PERIOD=60000 this is 1 min so change it to 900000 for 15 min.

DYN_SYSTEM_ON=1

DYN_SYSTEM=dyndns@dyndns.org for no-ip.com change it to default@no-ip.com and for dyndns.com change it to custom@dyndns.org

If you need to read the logfile /var/log/inadyn.log so change LOG_FILE_ON=1

Reboot ad you are ready.

http://dreambox.890m.com/inadyn.html
Nu il folositi pentru adrese la dyndns pentru ca va veti trezi cu conturile blocate.Cei care au conturi la no-ip il pot folosi linistiti.