Dynamic DNS is an essential tool for those who want to connect to their network remotely or run a server from home. The issue with most residential ISPs is that their IP addresses change frequently, making it difficult to connect to your network or server from the internet. One solution to this issue is to use a dynamic DNS service like noip.
noip is a free dynamic DNS service provider that allows you to assign a domain name to your changing IP address. In this guide, we will show you how to set up dynamic DNS with noip on a Linux machine.
Step 1: Create a free account on noip.com
Visit noip.com and sign up for a free account. During the registration process, you will need to choose a hostname (domain name) that you want to use for your dynamic DNS. You will also need to verify your email address.
Step 2: Install noip DUC on your Linux machine
noip provides a Dynamic Update Client (DUC) that runs on your machine and updates your hostname with the latest IP address. Download the DUC package from noip.com, extract it, and install it by running the following commands:
tar xzf noip-duc-linux.tar.gz
Step 3: Configure noip DUC
After the installation, you need to configure the noip DUC with your account details. Run the following command to start the configuration wizard:
Step 4: Create a systemd unit file for noip2 Create the file
/etc/systemd/system/noip2.servicewith the following content:
[Unit] Description=noip2 service [Service] Type=forking ExecStart=/usr/local/bin/noip2 Restart=always [Install] WantedBy=default.target
Step 5: Reload systemd and start the noip2 service
Reload systemd to make it aware of the new unit file:
sudo systemctl daemon-reloadStart the noip2 service:sudo systemctl start noip2
Step 6: Enable the noip2 service at boot time
To have the noip2 service started at boot time, enable it:
sudo systemctl enable noip2
Post a Comment