Weird hostname errors.

cprompt

Verified User
Joined
Sep 27, 2004
Messages
57
Location
Bristol, UK
I am getting this warning every day and cannot find the root cause:

Your hostname, , and the servername you have set in DirectAdmin, my.servername.net, do not match. It is recommended that these two values are the same.

I have replace the real server name with "my.servername.net" in this quote.

The weird bit is the
hostname, ,
It's like DA can't deduce what the server's real host name is?
I have followed instructions on setting the host name both on the support FAQ and by completely rebuilding the server from scratch.
Typing hostname at the ssh prompt gives the correct answer and the hostname and network files all seem fine.
It is a VPS and the only clue I can find is that when installing DA it found the server's IP address by ETH0 and not the usual device of venet0:0
that I have had to use on other VPS.
Any clues would be gratefully received as this one has got me really stumped!
:)
 
Check administrator settings in directadmin. The hostname value there must match the output of the hostname command on the shell.
 
Try to change hostname via /usr/local/directadmin/scripts/hostname.sh to your one.
 
Try to change hostname via /usr/local/directadmin/scripts/hostname.sh

I've done that one too (more than once!)
Thanks for the suggestions but I've tried them both and no difference.
 
Back
Top