How to setup No-IP Dynamic Update Client on Centos
Installation
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
/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
systemctl enable noip
- Start the service manually
systemctl start noip
Setup service on Centos 6.x (system V)
mv redhat.noip.sh /etc/init.d/
chmod 755 /etc/init.d/redhat.noip.sh
chkconfig --add redhat.noip.sh
service redhat.noip.sh start
Done
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.
ReplyDeleteThank 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.
ReplyDeleteany idea???