LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-28-2001, 08:08 PM   #1
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Rep: Reputation: 30

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.
 
Old 05-28-2001, 08:15 PM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
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..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba host names - how? levand Linux - Networking 3 11-18-2004 04:01 AM
multiple host names tux1982 Linux - Networking 3 06-08-2004 06:35 AM
Changing How Host Names are Looked Up civicsi Linux - Newbie 2 04-24-2004 07:18 AM
BIND 9 won't reslove host names jglazner Linux - Networking 4 02-23-2004 06:42 PM
can't makemap local-host-names in sendmail TomHodder Linux - Software 2 09-09-2003 09:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration