Sendmail /etc/hosts and DNS ... what is the correct way?

Posted by ben on Server Fault See other posts from Server Fault or by ben
Published on 2010-05-11T16:04:03Z Indexed on 2010/05/11 16:14 UTC
Read the original article Hit count: 250

Filed under:
|
|
|
|

I found one tutorial on setting up sendmail that says that in the /etc/hosts file, "The entry for 127.0.0.1 must always be followed by the fully qualified domain name (FQDN) of the server." Like so:

127.0.0.1 bigboy.my-site.com localhost.localdomain localhost bigboy

(This tutorial is here).

However, I can't find anyone else suggesting something like that. instead most people seem to put some combination of localhost and localdomain.localhost after 127.0.0.1, and then some variant of the fully qualified domain name after the public ip address.

What is the correct way?

© Server Fault or respective owner

Related posts about sendmail

Related posts about email