LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   name to ip resolution? (https://www.linuxquestions.org/questions/linux-networking-3/name-to-ip-resolution-204250/)

rohan208 07-12-2004 06:19 PM

name to ip resolution?
 
Hey i got couple of PC's on my netowork, and i'd like to have any one of them access the other but names rather than the IP addresses. forinstance
I have following PC's


192.168.1.5
192.168.1.25
192.168.1.35
192.168.1.50 <-- server (has cups printer installed)


now all the meachines can connect to eachother from ip addresses. for eg
from 192.168.1.5 i can type :
ssh 192.168.1.50 -p 23554
and i can ssh into 50. But I would liek to do something like:
ssh server -p 23554
and be able to connect to the server (.50). Any ideas how i can do that?
Temeprarly i have modified my /etc/hosts to add:
192.168.1.35 laptop
192.168.1.50 server
192.168.1.25 bruce
so now i can do ssh server and it connects to 50. But i dont want to do it on all Pc's .. is there a easier way to configure server to hold these entries and my otehr computers can take it from there? I am not sure if DNS will work with this.. will it?


Rohan

Edit: heh.. i m using Redhat 9 :D

Finlay 07-12-2004 06:51 PM

you have to setup a DNS server inside your network

idaho 07-13-2004 01:20 AM

For the small number of machines you describe, it would probably be easier to just manually edit the /etc/hosts file on each system to add the ip addresses and host names of all your systems.


All times are GMT -5. The time now is 03:31 PM.