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:
cd /usr/local/src
wget https://www.noip.com/client/linux/noip-duc-linux.tar.gz
tar xzf noip-duc-linux.tar.gz
cd noip-2.1.9-1/
make install
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:
/usr/local/bin/noip2 -C
Step 4: Create a systemd unit file for noip2
Create the file
/etc/systemd/system/noip2.service
with 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
No comments:
Post a Comment