LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-11-2005, 07:10 PM   #1
newlinuxuser03
LQ Newbie
 
Registered: Dec 2004
Posts: 11

Rep: Reputation: 0
Question 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?
 
Old 01-12-2005, 08:41 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
care to expand on what you're actually doing? where are you seeing this address? what server packages are you using?
 
Old 01-12-2005, 06:58 PM   #3
newlinuxuser03
LQ Newbie
 
Registered: Dec 2004
Posts: 11

Original Poster
Rep: Reputation: 0
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?
 
Old 01-12-2005, 07:08 PM   #4
sludink
Member
 
Registered: Jan 2005
Location: Brabant, the Netherlands
Distribution: Gentoo 2004.x (2.6.10 hardened)
Posts: 91

Rep: Reputation: 15
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.
 
Old 01-12-2005, 08:55 PM   #5
newlinuxuser03
LQ Newbie
 
Registered: Dec 2004
Posts: 11

Original Poster
Rep: Reputation: 0
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.
 
Old 01-13-2005, 01:05 AM   #6
newlinuxuser03
LQ Newbie
 
Registered: Dec 2004
Posts: 11

Original Poster
Rep: Reputation: 0
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?
 
Old 01-13-2005, 05:56 PM   #7
sludink
Member
 
Registered: Jan 2005
Location: Brabant, the Netherlands
Distribution: Gentoo 2004.x (2.6.10 hardened)
Posts: 91

Rep: Reputation: 15
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.
 
  


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
Forwarding Mail to a Different Host meshcurrent Linux - Software 1 06-30-2005 12:20 PM
K-mail Host oldtrout Linux - Newbie 1 12-26-2004 05:31 PM
K-mail Host Problem oldtrout Linux - Newbie 2 12-25-2004 11:27 AM
K-mail Host Problem oldtrout Linux - General 1 12-24-2004 10:12 AM
How do I access mail from another host? correro Linux - General 6 03-24-2003 07:38 PM


All times are GMT -5. The time now is 07:27 PM.

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