LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   basic question (https://www.linuxquestions.org/questions/linux-newbie-8/basic-question-631989/)

nooni 03-31-2008 02:55 PM

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 sendmail.mc 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 2003.so please help me to understand the difference between localhost and localhost.localdomain...

tnx...

simplicissimus 03-31-2008 04:13 PM

localhost
 
'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 127.0.0.1 (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,
Regards,
SIMP

Fedora User

nooni 03-31-2008 04:26 PM

thnx alot...now i have a clear picture about the localhost and localhost.localdomain...so i guess in sendmail.mc file i just have to edit the 'mydomain' parts not the 'localhost.localdomain' or 'localhost' parts...


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