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