Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: phranque
We have a number of servers, exact "working copies" of which are situated in my attic on the back of my ADSL connection. We find these really useful to beta test stuff prior to deployment.
I now work predominantly from my laptop in two different locations. I have a static IP address at home.
I edited my hosts file (I'm on Windows with the laptop btw) so that I could name the working copy server boxes (3 of them) to make it easier to SSH, FTP and VNC to them:- huey, duey and louis.
So hosts file is something like this:-
When I'm at home (and accordingly on the local net) this all works fine. When I'm at location #2, accessing through the internet, it of course stops working. Secondly, when I'm not at home, having only one IP address, I have to run all three services running on different ports to the standard ones.
I want to make life easier.
Can I run a DNS server on my local net somewhere (plenty of linux boxes here to use) that will point me to the right machine accordingly?
Ideally, I want to be able to connect to, say:-
huey.example.com via SSH (port 22)
duey.example.com via SSH (also on port 22)
And have it all work either from home or via the internet. I guess I need a DNS server that is authoritative for example.com which can then route the requests accordingly?
Hope I'm making sense here. Is this possible?
I registered a domain and set it up to point to dyndns.org. They then setup a wildcard pointer for me that goes to my home IP. This allows be to do things like:
URLs like that are easy enough that I can give them out to partners or clients. Works well.
I only have one server, but you could get the router to parse between multiple if that's what you need.