[hostname], resolves to 127.0.0.1

keefe007

Verified User
Joined
Dec 25, 2004
Messages
276
DirectAdmin keeps sending me polite messages stating:

host.domain.com, resolves to 127.0.0.1. Please make sure that your hostname resolves to your server ip (X.X.X.X) or else your email may not work correctly.

Solution:

Create an A record for your hostname (host.domain.com.) in your DNS control panel. Point the hostname to your server's main IP address. Also check /etc/hosts to ensure that the server ip is correctly set.

/etc/hostname contains "host.domain.com"

/etc/hosts contains
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 host.domain.com localhost host

::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
X.X.X.X host.domain.com

I also have an A record pointing host.domain.com to X.X.X.X.

Any ideas?
 
Take a look at your 127.0.0.1 line.

Remove the reference to host.domain.com and host there.

You will need to leave the localhost information there ... but remove the host.domain.com reference, so there is only one found within the /etc/hosts file.

It should look like:

Code:
127.0.0.1   localhost

...

X.X.X.X   host.domain.com     host


You should then be fine! :cool:
 
Back
Top