LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-19-2008, 06:24 AM   #1
raj_hcl1986@rediffma
LQ Newbie
 
Registered: Oct 2008
Posts: 21

Rep: Reputation: 15
Hostname to linux machines


Hi. I am a beginner to linux and got stuck. I have two virtual machines in VMware with redhat OS. I have assignes IP address to each machine, i dont know how to specify the hostname/domain name. Can someone please guide.
 
Old 10-19-2008, 06:42 AM   #2
WorldIsNotFair
Member
 
Registered: Jun 2008
Location: Jakarta
Distribution: CentOS 5
Posts: 89

Rep: Reputation: 17
go to /etc/sysconfig/network to edit hostname, then reboot.
 
Old 10-20-2008, 02:00 PM   #3
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 315

Rep: Reputation: 34
for temporary results say
hostname pcname.domainname
check the result by just typing hostname -fqdn after that.
For making the name persistent across multiple bootups .....
sysctl kernel.hostname=pcname.domainname
or you could make the changes in the
/etc/sysconfig/network file HOSTNAME parameter
hope that helps
nishith
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Linux File Server with Linux client machines - Advice please .. TechnoBod Linux - Server 5 06-19-2008 06:50 AM
Windows machines cannot locate server by hostname Nexgen Linux - Networking 13 08-03-2004 10:45 PM
Can't ping windows machines by hostname explorer Linux - Networking 10 03-06-2003 01:44 PM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 06:01 PM


All times are GMT -5. The time now is 12:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration