Hello all,
How do I give my networked machines host names? For example, I have 2 computers networked together and they have the following IP addresses: 10.1.1.1 and 10.1.1.2 If I say ping (or telnet) 10.1.1.(1 or 2) everything works fine, but how can I get them to do ping (or telnet) my_machine1 and my_machine2?? I want them to have actual names and not numbers. I tried setting the hostsname in linuxconf, but no luck. I am running redhat 6.2. Thanks. |
The easiest way is to edit /etc/hosts - the syntax of the file is self explanatory. If you want to go over the top in the future then setup your own DNS. There is almost never a need to do so on a home LAN, infact you'll probably just waste of your time getting it to work... Hence why I run one ;) More to play with!
If you need to do the same for Windows9x (and probably ME) then create c:\windows\hosts in the same fashion. On WinNT/W2K its under c:\windows\system32\drivers\etc\hosts - obviously!! HTH Jamie.. |
All times are GMT -5. The time now is 09:51 AM. |