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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-13-2002, 03:56 PM
|
#1
|
Member
Registered: Dec 2001
Location: Richmond, VA
Posts: 391
Rep:
|
How do I change the name of my box?
Example, when I'm in the console, it looks like this.
Code:
[root@localhost /root]#
How can I change the box name from localhost to something different?
|
|
|
09-13-2002, 04:03 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
use the hostname command. and this was asked a week ago, try searching for some other answers, cheers.
|
|
|
09-13-2002, 04:11 PM
|
#3
|
Member
Registered: Dec 2001
Location: Richmond, VA
Posts: 391
Original Poster
Rep:
|
In reading hostname --help, I found...
Code:
This command can read or set the hostname or the NIS domainname. You can
also read the DNS domain or the FQDN (fully qualified domain name).
Unless you are using bind or NIS for host lookups you can change the
FQDN (Fully Qualified Domain Name) and the DNS domain name (which is
part of the FQDN) in the /etc/hosts file.
In the /etc/hosts file, can I just change the name there? Will that have any negative effects on my system?
|
|
|
09-13-2002, 04:24 PM
|
#4
|
Member
Registered: Dec 2001
Location: Richmond, VA
Posts: 391
Original Poster
Rep:
|
Nevermind, I just changed it by:
Thanks for your help. 
|
|
|
09-14-2002, 04:26 AM
|
#5
|
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
the hostname command will change the machine until it reboots, then it will set it from one of a number of different files depending on distro. What you're looking for if you're running RedHat is /etc/sysconfig/network
Cheers,
Finegan
|
|
|
11-23-2002, 10:39 AM
|
#6
|
Member
Registered: Nov 2002
Location: UK
Distribution: Redhat 8
Posts: 30
Rep:
|
Delete me
Tried to delete this post - can't  can a moderator delete this one plz
Last edited by bladewalker; 11-23-2002 at 11:56 AM.
|
|
|
All times are GMT -5. The time now is 01:45 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|