Pages

Tuesday, September 13, 2022

Dynamic DNS with noip Solution

 Choose your Operating System and follow the installation instructions below.

  1. Download the DUC and save the file to: /usr/local/src
  2. Open a terminal and execute the following:
    • cd /usr/local/src
    • tar xzf noip-duc-linux.tar.gz
    • cd no-ip-2.1.9
    • make
    • make install
  3. Create the configuration file: /usr/local/bin/noip2 -C
  4. You will be prompted to enter your username and password for No-IP, and for the hostnames you wish to update.
  5. Launch the DUC: /usr/local/bin/noip2

Create the file /etc/systemd/system/noip2.service with the following content (and drop your init.d scripts):

[Unit] Description=noip2 service [Service] Type=forking ExecStart=/usr/local/bin/noip2 Restart=always [Install] WantedBy=default.target

Then issue

sudo systemctl daemon-reload

to make systemd aware of the new unit (systemd caches unit files and this command makes systemd reconsider its cache).

Now you can try to start and stop your unit and see its status:

sudo systemctl status noip2
sudo systemctl start  noip2
sudo systemctl status noip2
sudo systemctl stop   noip2
sudo systemctl status noip2

To have the unit started at boot time you need to enable it:

sudo systemctl enable noip2

No comments:

Post a Comment