Having in our Raspberry Pi a dynamic DNS or DDNS can be very useful to access our services from anywhere without having to memorize our public IP or having to be aware that this has changed. Today I will explain in a few simple steps how to install no-ip on your Raspberry Pi.
Índice de contenidos
How to create an account in no-ip
There are many alternatives to no-ip, but in my experience it is the easiest to use and the one that has worked best for me. This has a free plan that allows us to make use of their services with the only requirement to renew it every 30 days, which is not as annoying as it might seem since they notify you by email and it will take you 15 seconds to do it.
We will go to their official website by clicking here and create an account using the following form:
We will indicate our email and password, leave the Create my hostname later option selected, accept its terms and click on Free Sing up.
Then we will go to our email and we will have received an email similar to this one, we will click on “Confirm Account”.
Create our subdomain in no-ip
In this step we will basically create a subdomain in the free options offered by no-ip for our Raspberry.
We log in no-ip and where it says Dynamic DNS(in the left bar) we click on NO-IP Hostnames.
We will open the window where our domains should appear, we will click on the button that says “Create hostname” and we will open a wizard.
In the Hostname field we put the name we want and in Domain we choose the domain that we like and that is free.
All other fields will be left as they have appeared and click on “Create Hostname“:
Installation of no-ip on Raspberry
In this step we will install in our Raspberry the DDNS service that no-ip offers us. What this does is to check if our public IP has changed, and this has happened it assigns the new IP automatically to the subdomain that we have created previously.
To perform the installation we will open our terminal and launch the following commands:
We will create a folder for noip in our home directory:
mkdir /home/pi/noip
We move to the directory we have just created:
cd /home/pi/noip
Launch the following command to start downloading the latest version of noip:
When the installation is finished we run the wizard to configure the service:
sudo make install
First we enter the email address of our no-ip account.
Then it will ask for the password of this account.
Then it will ask us to enter how often we want no-ip to check that our public IP is the correct one, I have left it in 30 minutes, although you can put less.
In the next one we write Y.
And finally it will ask us to give a name to the script, I have called it noip.
All these steps should look like this in our terminal:
Check
To make sure that our dynamic DNS is working, from any other machine we will ping the address we have previously registered, and if the ping is successful, no-ip is working correctly:
Thank you for having come this far and if you have any questions feel free to leave them in the comments. Best regards.
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
Strictly Necessary Cookies
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
Leave a Reply