Menu
Reply
  • 5
  • 0
  • 0
niallain
Joining in
88 Views
Message 1 of 8
Flag for a moderator

Allowing domain to point to service hosted behind Superhub

Hi,

I am using my own domain to point to services hosted on various ports inside my home network.

I have forwarded the ports on the router and I can access them via EXTERNALIPSmiley TongueORT, but when connecting via the DNS record I have setup, it does not connect.

I can ping the subdomain I have setup and it returns my home IP, and when using nslookup to check the SRV record, it returns the correct port information.

 

Is it possible to set this up?

 

Thanks

0 Kudos
Reply
  • 21.65K
  • 780
  • 3.1K
Superuser
Superuser
83 Views
Message 2 of 8
Flag for a moderator

Re: Allowing domain to point to service hosted behind Superhub

if you have setup your DNS on the domain correctly then this will work the same as using your external IP. nothing on VM end would provent this. I do the same thing on a vm connection and have done for years.
0 Kudos
Reply
  • 5
  • 0
  • 0
niallain
Joining in
80 Views
Message 3 of 8
Flag for a moderator

Re: Allowing domain to point to service hosted behind Superhub

Hi,

 

Thanks for the quick response.

I checked with my domain provider and they've said that the SRV record is setup correctly

pasted2.png

Am I missing something?

 

Thanks

0 Kudos
Reply
  • 21.65K
  • 780
  • 3.1K
Superuser
Superuser
68 Views
Message 4 of 8
Flag for a moderator

Re: Allowing domain to point to service hosted behind Superhub

its not SRV recorfd you need to update. It is cnames.
add a cname to the dyndns address for example or a A forcord to your ip address.

0 Kudos
Reply
  • 5
  • 0
  • 0
niallain
Joining in
64 Views
Message 5 of 8
Flag for a moderator

Re: Allowing domain to point to service hosted behind Superhub

I've got an A record setup to point to my IP address. When pinging the A record it brings back my home IP.

From my understanding I need the SRV record in order to point to a specific port.

ping.PNG

0 Kudos
Reply
  • 21.65K
  • 780
  • 3.1K
Superuser
Superuser
58 Views
Message 6 of 8
Flag for a moderator

Re: Allowing domain to point to service hosted behind Superhub

wrong.

The A record points everything to the Ip address. you need to port forward the port on the router.

The SRV records are not needed.

For example if yu are hosting a website on a server on your LAn at 192.168.1.100 and your public ip is 80.80.80.80 you need to

1) set the DNS on the domain to point the A record for @ and www. to 80.80.80.80
2) port forward port 80 on your router to 192.168.1.100

that is all you need to do
0 Kudos
Reply
  • 5
  • 0
  • 0
niallain
Joining in
55 Views
Message 7 of 8
Flag for a moderator

Re: Allowing domain to point to service hosted behind Superhub

I've forwarded the ports on my router, and I can access the service via externalip : portnumber

portforward.png

 

I'm using different subdomains to point to a few services, and I'm changing the ports for security.

By definition:

SRV records. These records allow applications to locate services by giving the address and port information required.

 

I require subdomain1 to point to ip:3579 and subdomain2 to point to ip:8181

0 Kudos
Reply
  • 5
  • 0
  • 0
niallain
Joining in
38 Views
Message 8 of 8
Flag for a moderator

Re: Allowing domain to point to service hosted behind Superhub

Managed to resolve this by setting up a reverse proxy on my home server.

0 Kudos
Reply