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 |
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.
|
![Reply](https://www.linuxquestions.org/questions/images/buttons/reply.gif) |
01-11-2005, 07:10 PM
|
#1
|
LQ Newbie
Registered: Dec 2004
Posts: 11
Rep:
|
mail server and host name
I was setting my my mail server and looked at the e-maill address and decided that I didn't like it, It ends in the @localhost.localdomain. This is was is in my host name and I was wondering if I can change that host name or not?
|
|
|
01-12-2005, 08:41 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
care to expand on what you're actually doing? where are you seeing this address? what server packages are you using?
|
|
|
01-12-2005, 06:58 PM
|
#3
|
LQ Newbie
Registered: Dec 2004
Posts: 11
Original Poster
Rep:
|
Sorry for the lack of info
What I am trying to do is set up Evolution of my computer. When I go through the set up wizard at the begin, It has two fields that are already filled out, one is my name and the other is the e-mail address. The one that is given is my usernam@localhost.localdomain and when I looked at my host name in my Internet connections, that is the given user name. Is there a way that I can change this to something different or am i stuck with this as a host name?
|
|
|
01-12-2005, 07:08 PM
|
#4
|
Member
Registered: Jan 2005
Location: Brabant, the Netherlands
Distribution: Gentoo 2004.x (2.6.10 hardened)
Posts: 91
Rep:
|
I think you're meaning:
/etc/hostname
and
/etc/domainname
You can do, as root:
Newname > /etc/hostname
Newname > /etc/domainname,
and that should change you're host/domainname.
Don't know if this is what you're meaning, but trying this can't do to much harm, especially not after:
cat /etc/hostname > /etc/hostname.old
cat /etc/domainname > /etc/domainname.old,
and then doing the above, so you've got a backup.
|
|
|
01-12-2005, 08:55 PM
|
#5
|
LQ Newbie
Registered: Dec 2004
Posts: 11
Original Poster
Rep:
|
Gave that a shot, now when I log on. I don't have a hostname any more
Don't know what I did, but I lost it.
|
|
|
01-13-2005, 01:05 AM
|
#6
|
LQ Newbie
Registered: Dec 2004
Posts: 11
Original Poster
Rep:
|
dhcp fails to start
When I start my computer up, I see a mesage that the dhcp fails to start up. how do I fic that problem, plus whwn I exit my kde, I see a message that say Unable to get hostname, your system is misconfigured. I've found some files that have my original host name in them, but I can't seel to get the computer to see them
Any ideas?
|
|
|
01-13-2005, 05:56 PM
|
#7
|
Member
Registered: Jan 2005
Location: Brabant, the Netherlands
Distribution: Gentoo 2004.x (2.6.10 hardened)
Posts: 91
Rep:
|
I'm sorry if I messed things up for you in first place, didn't meen to.
But, I hope you made a backup like I said, so you should set back the backup, like:
$ cd /etc
$ mv hostname.old hostname
$ mv domainname.old domainname.
Now, I gave you some wrong advice maybe, their exists a command to change your hostname.
If I want to change my hostname to foo, logged in as root, I type:
# hostname -v foo
which gives as output:
Setting hostname to `foo'
Then it works, and after you simply issue:
#hostname
with no arguments, it says:
foo
.
domainname works the same, issuing dommainname in the command line with no arguments yields your current domainname, and saying domainname followed by a name sets your domainname to that name.
|
|
|
All times are GMT -5. The time now is 11:59 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
|
|