LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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-19-2004, 06:01 PM   #1
sicone
LQ Newbie
 
Registered: Jan 2004
Posts: 27

Rep: Reputation: 15
Localhost?


I've been on Linux for a little while and am getting to know a love linux , But I was wondering about the localhost and local domain what are they and what do they do . Can I change them to something else or would that not be good ? And when I login as root in terminal mode I am told that I have mail ?
 
Old 01-19-2004, 06:19 PM   #2
chrisk5527
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware Linux 10.0
Posts: 289

Rep: Reputation: 30
Some programs use localhost if your computer doesnt have a IP address, just a standalone workstation. The IP address for localhost ought to be 127.0.0.1 Just leave it be.

In order to get rid of the mail when you log in, type "mail" at the command line and then select the message by typing 1,2,3... Once you read it, it can be deleted by "d 1" or "d 2" meaning delete message 1 and so on.
 
Old 01-19-2004, 06:23 PM   #3
ash4stuff
Member
 
Registered: Aug 2003
Location: Viena
Distribution: Debian Sarge
Posts: 139

Rep: Reputation: 15
Ok... the file /etc/hosts has the localhost entry. Here you can relate host names (or domain names) to IP addresses. One IP address can have more than one "name". You can add other IP addresses to this file. Lets say a friend has the IP XX.XXX.XX.XXX. And you connect to him quite often, so you just could add an entry "friend" and you wouldnt have to write: ssh XX.XXX.XX.XXX, you could write ssh friend

DNS names are "normal" names for us to remember, instead of using IP addresses. When you type www.debian.org, your system looks for this entry in your /etc/hosts file, and if not there, than requests it to a DNS server. Your machine gets the IP address the corresponds to www.debian.org. Of course you could put www.debian.org in your hosts file, but that would make much sense. Of course this is oversimplified. I would recommend you reading a couple of Linux Howtos on the subject, or google a bit.

About the mail, most unix systems come with a MTA, mail transfer agent, like exim, qmail, etc.. you can use this MTA to send email internally in your sistem, or if set up correctly also to send and receive mail in the internet. In many linux systems the system "sends" mail to root with system information. Many other programs send security info to root, webmaster gets email over apache info, etc... Try using pine or mutt (console email programs) to read the mail. Then google a bit and try setting up and configuring an MTA of your own. You can do really cool things!
 
Old 01-19-2004, 06:59 PM   #4
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
yes you can change your the naem localhost to another name, if you change it to pineaple yout computer would tehn be called pineaple, the localhost entry only givs a name for your comp, use any name you want, most people change it to somthing they like better
 
  


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
Change localhost name in username@localhost n175uj Linux - Newbie 4 07-01-2005 08:25 PM
apache http://localhost/mysite ---> http://localhost/mysite/index.php how? ilnli Linux - General 8 06-04-2005 03:23 PM
Message from syslogd@localhost localhost kernel: Disabling IRQ #21 ylts Linux - Hardware 0 02-26-2005 08:01 AM
dns requests from localhost to localhost keex Linux - Networking 2 11-13-2003 01:47 PM
Telnet localhost and telnet not from localhost for IMAP services seb77 Linux - Networking 1 10-15-2003 01:20 PM


All times are GMT -5. The time now is 09:19 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration