1

I have three webservers in my home LAN (domotics, videosurveillance, Synology NAS). Right now, to access them from a remote client, I've set up a Dynamic DNS service and set the router (an Asus AC68U) to forward different ports to each local address.

What I would like to achieve, ideally, is a different subdomain for each web server so that I don't have to specify the port in the browser address bar. I.e., something like nas.mydomainname.ddns.net redirecting to my NAS local address and so on.

As far as I understand, I can't use DNS SRV records for HTTP requests. What other options do I have? Is there something I could do with the ASUS router? Or could I use the Synology NAS to redirect the connections to the other two servers based on the subdomain name?

  • 1
    set up a http proxy on machine which have the public ip (nas.mydomainname.ddns.net) – Ipor Sircer Sep 13 '16 at 13:06
  • 1
    I'm sure this is a duplicate of something but can't find what. Either way, use a reverse proxy. – user1686 Sep 13 '16 at 13:13
  • Good suggestion from Ipor. Nginx could do the reverse proxy very easily. Unfortunately, I doubt the router (Asus) would support this kind of functionality. – parkamark Sep 13 '16 at 13:13
  • The router doesn't have to. You can let one of the webservers handle it. – user1686 Sep 13 '16 at 16:55
  • or a raspberry pi, nginx, sni, letsencrypt, https, reverse proxy....is what you should do. just cname 3 subdomains to your dyn dns – Jacob Evans Sep 13 '16 at 17:01
0

The simple way is to add your server name and ip to hosts file. I don't think that your router can reassign DNS zones.

The second way to use bind DNS server in mixed mode (as cached and authority server) on your server. Then configure router's DHCP server to new DNS server.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.