Dynamic DNS for Raspbian with no-ip.org installer

Imagine you have just set up your own remote service at home. Maybe it is a web server, maybe it is just a SSH server, or maybe is your own private cloud with NextCloudPi.

First, you have to forward any ports you are intested in accessing from outside in your modem-router.

The next step is to access it from outside. Your ISP most likely will change your public IP every now and then, and also accessing by IP is harder because you have to remember it.

The solution to this is to use a dynamic DNS provider. There are a number of them out there, like duckDNS or DynDNS. I personally use no-ip.org.

Installation

Note that the Raspberry Pi requires internet access during the process in order to register with no-ip.org.

First, clone the repo

Online installation through SSH

Use the generic software installer with the script no-ip.sh

Adjust to the IP address of your Raspberry Pi.

If you do not want to be asked for the username and password, and you changed the default password for user pi, you can specify username and/or password in the command line.

Offline installation

You can do this process offline using QEMU.

Extract the SD card and copy the image to your computer (adjust sdx).

Then,

Once done, you can copy it back (adjust sdx).

Usage

You can verify that the noip2 daemon runs at boot

You can check the status of the noip2 daemon with

Code

github

References

http://projpi.com/raspberry-pi-tips-and-hacks/raspberry-pi-2-on-dynamic-ip-and-noip/

https://tech.enekochan.com/en/2013/11/03/compile-install-configure-and-make-start-on-boot-the-noip-com-client-in-raspbian/

Humbly sharing things that I find useful [ github | gist ]