[CentOS] Linux hosts file /etc/hosts

Rob Kampen rkampen at kampensonline.com
Tue Nov 8 18:10:12 UTC 2011


Reindl Harald wrote:
> Am 08.11.2011 18:53, schrieb Jonathan Vomacka:
>   
>> Reindl,
>>
>> To my knowledge, all that needs to be configured is A records, MX 
>> records, and SPF records (along with correlating PTR's). This is a whole 
>> other subject and I feel I will have this correctly configured. My fear 
>> is that someone will send email out from my server, and the hostname 
>> might come back as my systems host INSTEAD of the mail server hostname.
>>
>> Is it good measure to add it to the hosts file anyway or is this a waste 
>> of time? I guess my understanding of the host file is clouded
>>     
>
> the host-file is simply the same as DNS in both directions and
> does nothing than resolve name/ip locally, normally not needed
> but maybe a good idea to make sure servers like httpd starts
> even if no dns is reachable at this moment because httpd refuses
> to start if he can not resolve his own name
>
>   
also refer to /etc/resolv.conf
this file tells the system where to go for hostname lookups - as 
mentioned, if dns is unavailable during boot some things can get lost.
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>   


More information about the CentOS mailing list