When I need to step outside my house, sometimes I need to access some files in my computer and NAS server. The problem is, as we all know, the normal Internet lines issued for residential packages has dynamic IP.That means the IP address of your router is constantly changing unpredictably.
For that reason, I cannot simply access my files at home, being I don't know what is the most current IP address of my router. The solution to this is to have a DDNS (Dynamic DNS).
Vitalwerks Internet Solutions offers a free service called NoIP. This allows you to have a yourname.ddns.net which can be binded to the current IP address of your router.
In order for NoIP to update your DDNS entry, some device at your home needs to submit the current IP address of your router. Today, we are going to use the Linux client installed in a Raspberry PI box.
Mine was a Raspberry Pi 2 Model B with 1GB RAM Board. I had installed Raspbian on it and had it is connected to my router via RJ-45 cable. I had the device running 24/7 and is the ideal device for performing DDNS update.
To start with, login to your Raspberry PI box and download the DDNS client
The above will install the noip2 executable in /usr/local/bin/
Then you need to create the configuration file. Note that the config file is not plain text file. and the values there is encrypted.
This will create a file under /usr/local/etc/no-ip2.conf
Now start the client by:
It will now start updating your DDNS entries to your current IP. To check the progress and any issue, check the logs by
It will show up something like this
Note that I had replaced the info above with x, but in reality, those will be the actualy ddns host and IP of your router.
And now you are done! the client will update the ddns entry each time your IP changes. This opens a lot of possiblities
- Access your home network using the DDNS url
- apply a CNAME record so you can point a domain you own to a custom domain, for example mynetwork.darwinbiler.com instead of the generic mynetwork.ddns.net
- Host a website in your home
There is a lot of other possibilites in there and its only limited by your imagination!
Did you find this useful?
I'm always happy to help! You can show your support and appreciation by Buying me a coffee (I love coffee!).