How To Install No-ip In CentOS

No-ip client; use to update/resolve a server with a dynamic IP.

Prerequisite:

  • Create a free no-ip account.  Log in to the no-ip website and create a host.
  • Install “Make” compiler program in preparation to compile the no-ip program.  You might also have to install the “GCC” compiler if “Make” compiler don’t work; I have both GCC and Make installed.  The following is the  commands to download &install them:

yum install gcc

yum install make

Now onto the easy step-by-step installation of no-ip client.  Run the following 6 commands from the terminal:

  1. mkdir noip && cd noip

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

  3. tar zvxf noip-duc-linux.tar.gz

  4. cd noip-2.1.9-1

  5. make

  6. make install

You will then need to answer the following prompts:

Please enter the login/email string for no-ip.com

(Email account that you used to set-up no-ip account from their website)

Please enter the password for user 

(Password that you used to login to no-ip website)

Please enter an update interval: [30] 30

(Increments in minutes that you want no-ip client to check if your router’s external dynamic IP address has changed and updates it accordingly.)

Do you wish to run something at successful update? [N] (y/N)

(Enter “N” here)

Now start no-ip client by running the following command:

/usr/local/bin/noip2

Now have no-ip client start every time the computer reboot by issuing the following command:

echo ‘/usr/local/bin/noip2’ >> /etc/rc.local

More useful no-ip commands:

  • /usr/local/bin/noip2 -C                                       to configure noip client
  • /usr/local/bin/noip2 -S                                       to display info about running noip client
  • /usr/local/bin/noip2 -U                                       to set update intervals (in minutes)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

5 Comments (+add yours?)

  1. Travis Adkins
    Apr 16, 2015 @ 21:01:55

    Works well in Centos 6.6. Thanks a million!

    Reply

  2. pcsmith342
    Feb 23, 2013 @ 21:49:07

    I can confirm it’s working on my CentOS 6.2 box as well – Thanks for the guide!!

    Reply

  3. Ram Shankar Jaiswal
    Feb 14, 2013 @ 14:53:58

    Thanks a lot for writing this.. Using your manual I got no-ip up and running. The problem I am now facing is that it wont automatically start on rebooting the system even though I used the command echo ‘/usr/local/bin/noip2′ >> /etc/rc.local

    Do I need to specifically make changes to some configuration file so that it starts up automatically each time the system reboots?

    Reply

    • databoyZ
      Feb 18, 2013 @ 22:20:04

      Hello Ram. Apologize for the late reply, been busy this month. The following link is where I extracted the information from, http://www.noip.com/support/guides/update_clients/setting_up_linux_update_client.html My setup using this info appears to be working as stated. Out of curiosity, I will look revisit potential issue and post resolution if I find it. Thanks.

      Reply

    • databoyZ
      Feb 22, 2013 @ 23:50:09

      I have confirmed again that setup works using, echo ‘/usr/local/bin/noip2′ >> /etc/rc.local (no-ip automatically startups for me.) The possible pitful maybe, if you reboot your system and then check if no-ip client is running by issuing the following command, /usr/local/bin/noip2 -S, it will come back with the following message, “Can’t locate configuration file /usr/local/etc/no-ip2.conf. (Try -c). Ending!” This does not mean that no-ip client did not start after reboot, it means that you have to be root to issue the command (/usr/local/bin/noip2 -S) to check status.

      Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: