I’m new here and I hope this is the correct category to post, since IT is more about networking hardware?
Anyway, I’d like to ask a few questions concerning a private home server. Networking is not really my strong suit, so please bear with me.
Some time ago I’ve already set up a Raspberry Pi 3B+ using node.js to establish a http server with some basic routing for a few pages or applications (I probably wouldn’t really call it RESTful though). Now we’ve used to access these pages at home with our phones or computers using the Pi’s host-name, rpi-server, along with the port number specified in node.js. So everytime you’d need to type “rpi-server:8080” into the adress bar.
Now my questions are:
- Is there a way to privately use actual domain names as adresses to access different pages on the server? It feels more natural to type “mysite(dot)com” rather than the host-name plus port number.
- Will our home server be actually private if I set up domain names, and probably use DNS for resolving (if at all, sorry, no clue)? To my current knowledge, the server I’ve set up is only accessible if you’re connected to our home network, so our router via WiFi. I would like to keep it that way. So even if the server would have internet access (for some services like weather for example) and DNS for our own private “websites”, it should still be only accessible when connected to our home wifi.
I’ve tried to find something for this (articles or tutorials), but so far I’ve only found Windows-centric solutions. That’s why I signed up here (after following nixCraft on Twitter for quite some time now).