This is e-mail notification to warn you that your hostname is setup improperly

mdbbe

Verified User
Joined
Jul 30, 2008
Messages
7
I get following message everyday:

Subject: This is e-mail notification to warn you that your hostname is setup improperly on your system. Today at 00:10
Your hostname, , and the servername you have set in DirectAdmin, www.maartendeblock.com, do not match. It is recommended that these two values are the same.

Solution:

Either change the servername in DirectAdmin or run the 'hostname.sh' script via ssh to change your hostname

Unable to resolve your hostname, . This will cause major issues when sending email.

Solution:

Create an A record for your hostname (.) 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.


I ran hostname.sh and when I type 'hostname' in ssh, I get www.maartendeblock.com.


These are my DNS records:
ftp A 91.199.50.28
localhost A 127.0.0.1
maartendeblock.com. A 91.199.50.28
mail A 91.199.50.28
ns1.maartendeblock.com. A 91.199.50.28
ns2.maartendeblock.com A 91.199.50.28
pop A 91.199.50.28
www A 91.199.50.28
maartendeblock.com. NS ns1.maartendeblock.com
ALT1.ASPMX.L.GOOGLE.COM. MX 20
ALT2.ASPMX.L.GOOGLE.COM. MX 20
ASPMX.L.GOOGLE.COM. MX 10
ASPMX2.GOOGLEMAIL.COM. MX 30
ASPMX3.GOOGLEMAIL.COM. MX 30
ASPMX4.GOOGLEMAIL.COM. MX 30
ASPMX5.GOOGLEMAIL.COM. MX 30
maartendeblock.com. TXT "v=spf1 a mx ip4:91.199.50.28 ?all"


What am I doing wrong?

Thank you
 
Your hostname must be something special to that server.
Such as "mypowerfulserver.maartendeblock.com" or "hostingserver1.maartendeblock.com"
You don't need a DNS record for your hostname. But if you add it, it will be easy for you to reach.
Just login to directadmin > click administrator settings > enter whatever.maartendeblock.com in the box beside Server's Hostname > Click save.
That's all.
For dns record:
Go to Dns Administration > maartendeblock.com > Add an A record like that: whatever.maartendeblock.com A 11.22.33.44 (your server ip)
 
Thank you for the response. I followed your instructions, but I'm still getting errors:
-----
Your hostname, , and the servername you have set in DirectAdmin, server.maartendeblock.com, do not match. It is recommended that these two values are the same.

Solution:

Either change the servername in DirectAdmin or run the 'hostname.sh' script via ssh to change your hostname

Unable to resolve your hostname, . This will cause major issues when sending email.

Solution:

Create an A record for your hostname (.) 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.
-----
DA somehow doesn't detect the changes I made with hostname.sh.

Any suggestions?

Thak you
 
I also got this error last night.
However, the server was configured with this hostname for months and i got this error never before.

When i lookup my hostname on my server with nslookup everything looks fine.
Also my /etc/hosts file is ok.

This error is weird...
 
for vps users with any vps panel that might be helpful:

got same error, I changed hostname via DA settings and that's worked for months but one day suddenly I got that warning...

my vps panel (via provider) got 'change hostname' option set to old name when the vps got rebooted it took hostname from that node-config.. DA still had it's new name hence that DAconfusion
 
Go to Dns Administration > maartendeblock.com > Add an A record like that: whatever.maartendeblock.com A 11.22.33.44 (your server ip)

Should it be whatever.maartendeblock.com or whatever.maartendeblock.com. ? (with the trailing dot)?
 
Should it be whatever.maartendeblock.com or whatever.maartendeblock.com. ? (with the trailing dot)?

It should be with the trailing dot, like this:
Code:
whatever.maartendeblock.com. A 11.22.33.44
 
Back
Top