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

veyselakbas

Verified User
Joined
Jul 29, 2019
Messages
10
Hello, I'm receiving the warning message below after each reboot,

I corrected nano /etc/hosts manually, I have already added a A record to hostname, Directadmin Admin setting adjusted properly to correct hostname?

After reboot systam adds 127.0.0.1 to my hostname again even I delete it.
Any idea to solve it?

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

Solution:

Create an A record for your hostname (my.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.
 
Last edited:
Last edited:
Hello Richard, I did it several times. editing manualy. After each reboot 127.0.0.1 is added back.
 
Last edited:
After each reboot 127.0.0.1 server.mydomain.com server. record comes back.
Are you using a VPS by any chance? If yes, it might be caused by a vps script. I've seen some vps providers do that.

In that case I would advise to immute the hosts file.

First make it correct again like it should be, and after that issue this command as root:
chattr +i /etc/hosts
then reboot and see if it is not changed anymore.
 
Last edited:
Are you using a VPS by any chance? If yes, it might be caused by a vps script. I've seen some vps providers do that.

In that case I would advise to immute the hosts file.

First make it correct again like it should be, and after that issue this command as root:
chattr +i /etc/hosts
then reboot and see if it is not changed anymore.
I'm using Dedicated Server and what I want to know the rootcause if what changes this hostname back after each reboot.
 
Hello Richard, could you please delete my server and ip info from your 2 messages? Sorry it's my mistake to write it here. Thank you for understanding.
 
Thank you for understanding.
No problem. I editted the post (and quote) accordingly.

As for the root cause, I don't know normally this isn't changed provided everything is configured correctly and correct hostname is in Directadmin too.
 
Back
Top