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?
|
| |||
|
feedback
|
|
What you are looking for is DNS. Most routers don't run DNS and you probably don't have a DNS server in your house. The next closest thing that you can do is add an entry to the HOSTS file on the computer that you will be SSHing from. If you really want, you can set a static IP on the Ubuntu box and install BIND on it and point all of the other computers in your network to use it for DNS resolution. | |||||||||||
feedback
|
|
The surefire easiest way will be to map the server's IP to the name of your choosing in the etc/host file on your computer. Follow the format of the existing 127.0.0.1 entry, substituting the server's IP for 127.0.0.1, and the name you want to use for the server in place of 'localhost'. | |||
|
feedback
|
|
If you have a DD-WRT supported router you can enable the 'Local DNS' option. This will serve DNS records for you local network and is updated by DHCP. | |||
|
feedback
|