Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-31-2008, 02:55 PM   #1
LQ Newbie
Registered: Mar 2008
Posts: 8

Rep: Reputation: 0
basic question

hi heveyone,
im implementing sendmail on my linux server, and i'm facing some problems...the first thing that i have to say is that i cant understad the difference between localhost.localdomain and localhost...this gets worse when i want to configure the file, i know that i have to replace the domain name with my own domain but i dont know what to put instead of localhost.localdomain....i have to mention that i'm using DNS that is configured on win server please help me to understand the difference between localhost and localhost.localdomain...

Old 03-31-2008, 04:13 PM   #2
Registered User
Registered: Mar 2008
Posts: 104

Rep: Reputation: 15

'localhost.localdomain' is the fully qualified domain name of your local PC as it references itself, and 'localhost' is an alias that is equivalent to 'localhost.localdomain', the only difference being that it is shorter. No matter what hostname is set for your PC, the names 'localhost' and 'localhost.localdomain' will always work as a reference to itself. Both will always point to IP (unless you explicitly temper with the /etc/hosts file), which is your current PC.

If you don't know what domain name to use instead of localhost, than you have no domain name, otherwise you would know about it. The two possibilities are:

1) use any name you want if this is your home PC or a PC on a local network with no server services to the outside world

2) register some domain name (your ISP is likely to have this service) if you want your server to be seen from the Internet identified by that name

If you have no specific reason for a unique domain name, than leave localhost as it is. Otherwise specify what you want to achieve.

Hope this helps,

Fedora User

Last edited by simplicissimus; 04-02-2008 at 05:13 AM.
Old 03-31-2008, 04:26 PM   #3
LQ Newbie
Registered: Mar 2008
Posts: 8

Original Poster
Rep: Reputation: 0
thnx i have a clear picture about the localhost and i guess in file i just have to edit the 'mydomain' parts not the 'localhost.localdomain' or 'localhost' parts...


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
Basic C question ankit4u1 Programming 4 09-29-2007 02:16 PM
Basic C++ question gregorian Linux - Newbie 4 02-23-2007 07:13 PM
First basic question? DBolan Linux - Newbie 5 04-29-2005 02:52 PM
basic question jaina2 Linux - Newbie 1 07-26-2003 02:44 AM
A really basic question pilotgi Linux - Newbie 10 10-14-2002 04:57 PM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration