Jose Manuel Andrade Pereira's picture

Install NO-IP DNS Client on TURNKEY LAMP:

1. Go to Shell Box:

apt-get install build-essential gcc -y

cd /usr/local/src

wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz

tar xzf noip-duc-linux.tar.gz

cd noip-2.1.9-1

make

make install

2. Configure NO-IP:

Please enter the login/email string for no-ip.com: yourmail@yourmail.com
Please enter the password for user 'yourmail@yourmail.com' : yourpassword
Please enter an update interval:[30]: 30
Do you wish to run something at successful update?[N] (y/N): N
Done!

3. Go To Webmin -> Tools -> File Manager

4. Go to /etc/init.d

5. In file manager menu, go to File -> Create New File -> New file name: noip2 -> Create

6. In file manager select file: noip2 in dots icon menu select "Edit" and paste this script:

#! /bin/sh
# /etc/init.d/noip2

# Supplied by no-ip.com
# Modified for Debian GNU/Linux by Eivind L. Rygge <eivind@rygge.org>
# Updated by David Courtney to not use pidfile 130130 for Debian 6.
# Updated again by David Courtney to "LSBize" the script for Debian 7.

### BEGIN INIT INFO
# Provides:     noip2
# Required-Start: networking
# Required-Stop:
# Should-Start:
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start noip2 at boot time
# Description: Start noip2 at boot time
### END INIT INFO

# . /etc/rc.d/init.d/functions  # uncomment/modify for your killproc

DAEMON=/usr/local/bin/noip2
NAME=noip2

test -x $DAEMON || exit 0

case "$1" in
    start)
    echo -n "Starting dynamic address update: "
    start-stop-daemon --start --exec $DAEMON
    echo "noip2."
    ;;
    stop)
    echo -n "Shutting down dynamic address update:"
    start-stop-daemon --stop --oknodo --retry 30 --exec $DAEMON
    echo "noip2."
    ;;

    restart)
    echo -n "Restarting dynamic address update: "
    start-stop-daemon --stop --oknodo --retry 30 --exec $DAEMON
    start-stop-daemon --start --exec $DAEMON
    echo "noip2."
    ;;

    *)
    echo "Usage: $0 {start|stop|restart}"
    exit 1
esac
exit 0

7. In the text Editor select icon disk to save, then close.

8. Go to Terminal Press ALT + K, or click in the icon in left pad:

chmod +x /etc/init.d/noip2

update-rc.d noip2 defaults

/usr/local/bin/noip2 -S

9. Done, Close Terminal.

Your DNS client starts automatically when you start the LAMP system.

 

Forum: 

Add new comment