• First Steps
  • General
  • Projects
Facebook Twitter YouTube
Tutorials for Raspberry Pi Tutorials for Raspberry Pi
  • Hardware & GPIO
  • Sensors & Components
  • Scale
  • Cases
  • Fingerprint
  • Gas Sensor
  • Heartbeat
  • German
Tutorials for Raspberry Pi Tutorials for Raspberry Pi
Home»Software»Webserver»Raspberry Pi Web Server Installation Part 6 – DNS Server via No-IP

Raspberry Pi Web Server Installation Part 6 – DNS Server via No-IP

Facebook Twitter LinkedIn Tumblr Email Reddit
Share
Facebook Twitter LinkedIn Email Tumblr Reddit Telegram WhatsApp

Part 6 of the web server installation is about making the server available outside of the local network using a DNS server (such as No-IP, DynDNS).

With the previous programs we were able to set up a complete web server, but in the vast majority of cases, the files should also be accessible via the internet. This will be covered in this tutorial.

First, we need a DNS provider, where I prefer No-IP (free). So we create a free account at https://www.noip.com/sign-up. The only “disadvantage” of the Free Version is that every month an email arrives asking you to confirm the account (via captcha input).

After logging in, we click on Add a Host and choose a host name and, as domain, one of the No-IP Free Domains listed below. As Host Type, we use DNS Host (A).

noip config

Now click on Add Host and we can come to the configuration on the Pi.

The package must be downloaded from the site

sudo wget http://www.noip.com/client/linux/noip-duc-linux.tar.gz

and unpacked:

sudo tar xf noip-duc-linux.tar.gz

To install the package, we first have to switch to the folder

cd noip-2.*

and compile

sudo make install

Then a query will come to the email address, as well as the password used. As an interval, I left 30 seconds and on “Do you wish to run something at successful update?” answered with a no.

noip-cmd

You start the service by means of

sudo noip2

but attention: If you restart the Pi, No-IP will not start automatically. How to do that is described in this tutorial.

So that the service can now also forward from the outside to the Pi (when calling your-domain.no-ip.org or similar) you also have to share in your router the ports 80, 81 and 8080 (TCP). In my router, this is possible under the Port Forwarding tab. As the IP address, you give the internal IP of the Raspberry. With me, that is 192.168.1.83 (which it is exactly with you, can be seen in your router).

portforwarding

If you want to change the configuration at a later time, you can find it under /usr/local/etc/no-ip2.conf.

dns dns server no-ip noip noip2 web server
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
Previous ArticleRead Capacitive Soil Moisture Sensor DFROBOT Gravity on the Raspberry Pi
Next Article Smart Home: Raspberry Pi + Xiaomi Flower Care Pflanzensensor einbinden

Related Posts

Control all GPIOs with the Raspberry Pi REST API via Python

Raspberry Pi Home Automation: Install & Configure OpenHAB

Creating a Raspberry Pi SSL Certificate For Free With Let’s Encrypt

Wireless communication between Raspberry Pi’s via MQTT broker/client

2 Comments

  1. Geoffrey Callaghan on 9. April 2019 21:20

    You could also use staticIP.io, which is a very good DDNS

    Reply
  2. tb on 2. July 2021 12:14

    What are the URLs of all the articles in this series, those prior, and those succeeding, if any?

    I have used the following search args with no luck:
    1. “Webserver” and “webserver”
    2. “Raspberry Pi Web Server Installation” and “Raspberry Pi Web Server Installation Part”

    None of these searches yielded articles that appear to be “Part of this series!”

    Your help is much appreciated
    Thank you
    tb

    Reply

Leave A Reply Cancel Reply

Build Raspberry Pi GPS location/navigation device

Raspberry Pi as a Jukebox (Spotify, Soundcloud, TuneIn, and much more) – Online Radio

Log Raspberry Pi sensor data with ThingSpeak and analyze it

Raspberry Pi and Arduino – Introduction

How to let an Arduino and Raspberry Pi communicate with each other

Raspberry Pi Web Server Installation Part 6 – DNS Server via No-IP

Subscribe to Blog
Subscribe to Raspberry Pi Tutorials and don't miss any new Tutorial!
Subscribe

Thank you!

We will contact you soon.

Tutorials for Raspberry Pi
Facebook Twitter YouTube
  • Contact & Disclaimer

Type above and press Enter to search. Press Esc to cancel.