Using external DNS in LAN

hephie

Honorable
Apr 15, 2012
6
0
10,510
Hi All,

I think the subject gives a good first impression of what I'd like to achieve.
Anyway i'll give a little more context.

I'm running a Windows Home Server in my LAN and I would like to use it's functionalities (especially the streaming) features from "anywhere" using the same URL.
My router is a Linksys WRT160Nv3 running on the DD-WRT v24-sp2 firmware.

I've already setup the necessary port forwardings, as most of the WHS sites run on ports 80 (http) and/or 443 (https) and my isp is blocking all ports < 1024 (I know it suck, but nothing to do about)

Anyway, outside my network (friends home, work, ...) I can access my home server browsing to http://xxx.homeserver.com:10080 or https://xxx.homeserver.com:10443

What I want is that this (external) DNS also works when i'm inside my network (so when I'm at home).
Is this possible?


I want this because on the home page of the WHS web interface, I have some links (for example to sabnzb, or the webpage of my raid controller, etc etc, but they all point to http://xxx.homeserver.com:<otherport>.
These url's (with the external dns) are not working when i'm inside my lan.
I'm not an export but i'm quite sure it's a DNS issue.


Some more info:
When i do an nslookup xxx.homeserver.com I see the (external) static IP that has been assigned to my router.
When I do a ping to xxx.homeserver.com I also get a reply from the (external) static ip that has been assigned to my router.

Need more info? do ask!!

Thanks in advance!

Greetz,
Hephie


 
not everything is running on the same portnumber, so your proposed solution would not work.
/link is server relative, you'll need to stay on the same port then.

anyone else a solution?
 
OK, then, your next easiest solution is to modify the hosts file on each internal PC to point xxx.homeserver.com to your servers internal IP address.

The only other solution is for you to set up your own DNS server that will serve the internal IP address of xxx.homeserver.com to local PCs but pass other requests through to your ISPs DNS server.