No-IP
Internet

How To Install NO-IP in Kali Linux

No-IP is a Dynamic DNS Update Client which you can use to auto update the Dynamic IP of your DDNS Configuration. You are able to install No-IP‘s  DUC on KALI LINUX in just few minutes with Terminal. The following below guides you step by step on how to Install and run no-ip or noip2 service on your local linux machine. Proper setup will be able to run as a daemon and do forward your IP address to the DNS server to update your symbolic name for your host.
First create an account with no-ip. You can create your account here

 DOWNLOAD & INSTALL NO-IP CLIENT

To install noip2 service, type in to Terminal :

cd /usr/local/src/
wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
tar xvf noip-duc-linux.tar.gz
cd noip-2.1.9-1/
make install
Then you will be prompted to configure your account’s login detail Username and Password.

To test and create a local configuration,

/usr/local/bin/noip2 -C (capital dash C, create default config file)

You will be prompted for your No-IP credential login account, as well.
Then you also can manually update server with :

noip2 -c CONFIG -i <ip address>
ping googel.ddns.no-ip.org
It should configure your external IP address into your DDNS hostname.

MAKE AN AUTORUN SCRIPT DAEMON AT BOOT

To run daemon automatically when the machine has booted, type this following script, place and name it as /etc/init.d/noip2

#! /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

Then give permission into that daemon script :

chmod +rx /etc/init.d/noip2
now you can start the Daemon and check that it is running :
service noip2 start
systemctl status noip2.service
I hope that this work for you. If you find this post quite educative, please share and like so tha others can benefit from you. Thank you.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.