1
1
I have ubuntu server set up on a computer at my house, and I want to be able to access it from another computer in the house (through SSH) without typing in its IP address. I'd really rather type in the computer's name (homeserver
) or create a static domain name to access it from (i.e. homeserver.net
, or something similar) from either the router or my home server?
Ah, I was afraid of this. Mostly because I don't want to either walk my fiancee through how to do it or do it myself for her computer. ;) But if that is what it takes, then that is what it takes. Thanks! – ashays – 2011-02-11T02:02:10.680
Well, if you set up DNS, and her computer is configured via DHCP, you can just set your router to use that as the DNS server. Next time she renews her address lease, she'll be using the server for DNS. She'll never know it happened :) – MDMarra – 2011-02-11T02:05:01.003
DNSMasq is a nice package to do this. Disable DHCP in DNSmasq or your router. It can read your /etc/hosts file and pass out addresses for hosts listed there. You will want to configure your server with a static address outside your router's DHCP range. – BillThor – 2011-02-11T02:09:43.167
I will set up DNS at some point in the near future, I guess. For now, I edited the hosts file in windows, and got it to work with http://homeserver.net and http://homeserver, so that should be good enough for now. Thanks for the help!
– ashays – 2011-02-11T02:09:52.523@ashays - No problem. If a question solved a problem for you, the proper thing to do is click the check mark under the voting button to accept it. That way other users that have the same problem can easily see what solved it. – MDMarra – 2011-02-11T02:25:26.883
@MarkM Yeah, I was just about to do that honestly (I use SO from time to time, but this question seemed more appropriate here). But when I clicked it it said I had to wait 30 seconds and I have a short attention span, so I walked off and then clicked it when I got back. :) – ashays – 2011-02-11T03:50:45.713