4.26.2016

How to setup No-IP Dynamic Update Client on Centos

Installation

  • Switch to the root user
sudo -s
  • Download Dynamic Update Client (DUC) package
wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
  • Extract the package and install
tar xzf no-ip-duc-linux.tar.gz
cd no-ip-2.1.9
make
make install
  • Configure the client
/usr/local/bin/noip2 -C

Setup service on Centos 7.x (systemd)

  • Create file /usr/lib/systemd/system/noip.service with content:
[Unit]
Description=No-IP Dynamic DNS Update Client
After=network.target

[Service]
Type=forking
User=root
ExecStart=/usr/local/bin/noip2
ExecStop=/bin/killall noip2

[Install]
WantedBy=multi-user.target
  • Enable the service
systemctl enable noip
  • Start the service manually
systemctl start noip

Setup service on Centos 6.x (system V)

  • Setup the service
mv redhat.noip.sh /etc/init.d/
chmod 755 /etc/init.d/redhat.noip.sh
chkconfig --add redhat.noip.sh
  •  Start the service
 service redhat.noip.sh start

Done


2 comments:

  1. Thank you very much for your help! I was just looking for this: how to create the systemd unit file to excecute no-ip update client at startup.

    ReplyDelete
  2. Thank you for nice instruction. I followed your guid. I am using redhat6. the service is rung. I set the update time as 5 minutes.when I check noip2 -S command it says it updating every 5 minutes. but it not updating every 5 minutes. it only get updated if I restart the system or if I restart the service.
    any idea???

    ReplyDelete