Linux - GeneralThis 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.
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.
How do you get rid of localhost.localdomain as your domain name? I am tired of seeing Linuxchick@localhost at the top of my terminal window.
I have already changed /etc/sysconfig/network and /etc/hosts. I have even gone into the network connection GUI and changed the alias but nothing has worked so far. I am running RH 7.2 .
Thanks
Last edited by linuxchick; 03-05-2002 at 12:45 PM.
type "hostname newhost" and then "domainname newdomain" and that *should* do it. sometimes it can be a little tricky, so you might need to play around with it a little...
would doing that make anything inoperable, since my system has been running a while, and is used to it?
Red hat doesn't offer a way to config this during install. at least not 7.2
ummmmm... yeah, redhat 7.2 gives you the option to set your host and domain name during the install. it's in your network properties; second section where you set your DNS servers.
what role does the 'localhost.localdomain' play? Im hosting a website from my machine (and im a newbie, scary huh?) would I want to change my localhost.localdomain info? I never read anything about this and if I should change it, what would be in the place of 'localhost' and 'localdomain'? Just need a quick definition on each and i'll be on my way.
(would localhost be like, the name you give your machine? And localdomain the "domain.com" of your orginization er whatever?)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.