LinuxQuestions.org
Review your favorite Linux distribution.
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 04-09-2007, 12:04 PM   #1
Ab3n
Member
 
Registered: Sep 2004
Location: Colorado, USA
Distribution: CentOS 5
Posts: 144

Rep: Reputation: 15
Host name


Hey all,

I'm using fedora 6 and was wondering how I would go about settting the machine's name so that I don't have to refer to it's ip address when connecting from other machines (both win and linux). Thanks!
 
Old 04-09-2007, 12:15 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
From the console or xterm session type; man hostname
 
Old 04-09-2007, 12:24 PM   #3
fur
Member
 
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310

Rep: Reputation: 35
Setting the hostname on a computer wont allow other computer to refer to it as such. You will either need to setup a DNS server, or make entries in your hosts file for all the devices on the network.


http://en.wikipedia.org/wiki/Hosts_file
 
Old 04-09-2007, 01:16 PM   #4
Walman
Member
 
Registered: Jun 2004
Location: Venezuela
Distribution: RHEL ,Ubuntu, Slax, Kali
Posts: 95

Rep: Reputation: 15
Ab3n

You need to configure your /etc/hosts file . In that you will add the IP address of your machine , the full domain name and the alias name ,

once done that , the name will be always resolved to that IP address .

Also , you can issue the command hostname <your computers name> that will put a name to your computer but it will be not recognize in the net until you cofigure the file /etc/hosts
 
Old 04-09-2007, 02:17 PM   #5
dgar
Member
 
Registered: Jun 2005
Location: Candia, NH
Distribution: Ubuntu, FC, RHE3, RHE4, CentOS
Posts: 121

Rep: Reputation: 15
On windows looks for the hosts file somewhere like:
c:\windows\system32\drivers\etc\hosts.txt


Make sure both the windows and the linux machines have static IP addresses and make entries in both machine's hosts files. Then test with ping, etc.
 
  


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
Required to achieve host to host communication via USB file transfer cable may1284 Linux - General 1 03-14-2007 04:02 PM
host-to-host USB cable: how to make it work under debian?? stefan_578 Linux - Hardware 18 12-20-2006 02:09 PM
connecting a host to internet thru another host (both running suse9.3) rcbell Linux - Networking 1 12-17-2005 05:35 PM
Resolving <www.some remote host>.... failed: Host not found. koodoo Linux - Newbie 2 06-27-2005 08:48 AM
Unknown Host <Linuxmachinename> / Unable to ping by host name nishi_k_79 Linux - Networking 4 11-01-2003 01:24 PM

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

All times are GMT -5. The time now is 06:56 AM.

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