I recently setup an OpenMediaVault server to get a homemade NAS.
To be able to access the various services offered by my NAS, I am required to enter the IP address of the server followed by the port associated with the service.
For example, to access my cloud (Nextcloud), I must enter this address in the browser: https://xx.xxx.xxx.xxx:444
My question is: is it possible to create a subdomain pointing to an ip and a port?
For example, I would like to be able to access my cloud (xx.xxx.xxx.xxx.xxx.xxx:444) by entering: https://cloud.mydomain.com
Because after several searches I understood that I didn’t. I even tried to create an SRV record but it doesn’t work.
You’d need to configure your NAS to run on one of these ports or alternatively - depending on your network setup - have some port translation/remapping.
As I mentioned earlier, DNS and ports are unrelated. You dont create “a host with a port”. You simply add the desired A record in your control panel with the right name and IP address, which you can then connect to specifying th right port in your browser.
You can create as many as you want, but they will all point to the same IP address and you’ll still need to append the port to the host in the address bar.