0

I have 10 RPis located at different cities, and I want to remotely and securely access them from the office, control them, update the contents, etc.

As I've searched so far, there are several ways to do so like port forwarding, static IP, etc.

Now I want to know whether it's possible to use my domain/host to do so. I have a domain say www.mydomain.com with a US linux host, and I can create as many subdomains as I like on it.

Is it possible to create subdomains like rpi01.mydomain.com, and use these subdomains to remotely and securely access RPis from anywhere in the world !?

And if yes, how can I do this !?

Omid1989
  • 662
  • 2
  • 14
  • 29

2 Answers2

1

You will need to add records for each name (rpi01.mydomain.com etc) to the DNS server responsible for mydomain.com. If you have a master DNS server for it, just add the records you need to /var/named/mydomain.com.zone. If not, ask your registrar to add those records for you, or use their web interface if they provide one.

Example: Namecheap: How do I create a subdomain for my domain?

Dmitry Grigoryev
  • 28,277
  • 6
  • 54
  • 147
1

If you have control over your DNS server, you can add host names dynamically and associate them with a particular device. So for example:

 rpi001.domain.com   110.220.100.10
 rpi002.domain.com   110.220.100.11
 ...

You can use this simple method to ask each rpi to identify itself with your server; you can also use this as a two way communication.

Your problem is not over just having the public IP or a valid dns entry. On each location you will need to do a port forward to reach the remote LAN rpi; not easy if you have limited or no control over the remote site.

I think that will be easy and secure for each rpi push and request the updated information from your server at specific times using cron or a similar method.

fcm
  • 1,869
  • 2
  • 19
  • 30