Skip to content

DDNS

Installing a Dynamic Domain Name Service (DDNS) is vital for connecting to a home network where the internet service provider dynamically changes your IP address. This is different than say creating a server on AWS where it is easy to assign it a static IP address where you can reliably forward traffic.

Download and Install DUC

No-IP is a server that will provide one DDNS for free which is perfect for a home network. We don't need more than one. This way, instead of forwarding traffic to an IP address, we will instead forward traffic to Host name that we create, i.e. example.ddns.net. To install the No-IP client on my Ubuntu instance, I followed the support documentation from No-IP.

These commands will download, extract, and install the client.

sudo -s
cd /usr/local/src/
wget http://www.noip.com/client/linux/noip-duc-linux.tar.gz
tar xf noip-duc-linux.tar.gz
cd noip-2.1.9-1/
make install

Install Make

Now I did actually need to install make as I got an error saying make was not found. I followed these instructions.

  • Update System

sudo apt update && sudo apt upgrade -y

  • Install Make

sudo apt install -y make

  • Install build essentials which installs the packages needed for compiling Linux packages.

sudo apt install build-essential

Create a service for No-Ip

Create the file /etc/systemd/system/noip2.service with

[Unit]
Description=No-Ip Dynamic DNS Update Service
After=network.target

[Service]
Type=forking
ExecStart=/usr/local/bin/noip2

[Install]
WantedBy=multi-user.target

Reload the init daemon

sudo systemctl daemon-reload

Enable the service

sudo systemctl enable noip2

Start the service

sudo systemctl start noip2

Comments