LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-03-2003, 11:33 PM   #1
coolamit78
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Rep: Reputation: 31
Changing Host name


Hi......I have a small question...

How to change the name of your machine?

I know there is a variable called HOSTNAME, however setting it to a different value dosent change the machine name.

Suppose my host name is 'leopard' and if I want to change it to 'tiger'....what will be the procedure? Pls suggest...


thanks,

amit
 
Old 10-04-2003, 12:16 AM   #2
spurious
Member
 
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
Look in the file /etc/profile
 
Old 10-04-2003, 12:18 AM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
some distros have /etc/HOSTNAME
others have /etc/sysconfig/network

some have this and some have that, and some have something else.

or just type this

hostname yourhostname

you will also want to add the name to /etc/hosts
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
changing host name scng Linux - Newbie 10 10-03-2004 06:36 AM
Changing host Name velan Red Hat 4 09-28-2004 11:07 PM
Changing host name jonathanztaub Red Hat 3 05-03-2004 03:14 AM
changing host name needforspeed Linux - Software 1 02-28-2004 11:44 AM
changing host name hoffman Linux - Newbie 3 11-22-2003 02:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:58 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