I wonder if anyone can help me with this one. I work on my own websites with my partner in crime situated in Belgium.
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?