hostname is setup improperly on your system

MopeyGecko

Verified User
Joined
Apr 6, 2022
Messages
32
I'm seeing the following error in my message system. It looks like the server IP is being recalled incorrectly.

host.co22.uk, resolves to 127.0.0.1. Please make sure that your hostname resolves to your server ip (45.76.134.125) or else your email may not work correctly.

Solution:

Create an A record for your hostname (host.co22.uk.) 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.
There is an A record pointing to the actual server IP of 78.141.234.188.

45.76.134.125 is a "Free" IP according to the directadmin IP management view so I'm unsure if this is a DA bug or something I need to change.

1705164607964.png


Many Thanks
 
or something I need to change.
It does resolve correctly now. But if DA keeps complaining most likely something you need to change.

Check your /etc/hosts file. Possible that it says:
127.0.0.1 host.co22.uk

Change it so it looks normal, kind of like this:
Code:
127.0.0.1 localhost.localdomain localhost
45.76.134.125   host.co.22.uk host
::1     ip6-localhost ip6-loopback

Use the correct ip ofcourse.
 
Thanks. That's the issue though...

45.76.134.125 is NOT the server IP, it's listed as a free IP in the Direct Admin IP Manager. The correct server IP is 78.141.234.188 which is where the host.co22.uk A record resolves to. I'm not sure why the DA error message thinks the server IP is 45.76.134.125

hosts file is as follows

# The following lines are desirable for IPv4 capable hosts
127.0.0.1 host.co22.uk host
127.0.0.1 localhost.localdomain localhost
127.0.0.1 localhost4.localdomain4 localhost4

# The following lines are desirable for IPv6 capable hosts
::1 host.co22.uk host
::1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
 
The correct server IP is 78.141.234.188
But neither ip is in the hosts file and then it could be that DA uses the lower ip number as main server ip.
Your hosts file is incorrect.
Change:
127.0.0.1 host.co22.uk host
to
78.141.234.188 host.co22.uk host

And do the same for the ipv6
change:
::1 host.co.22uk host
to
the correct ipv6.

Do you use your ipv6 solo or did you link it to your ipv4?

Ah wait... I see... seems you user the ipv6 as main ip. Normally you assign ipv4 to admin. Then click ipv4 and link the ipv6 to the ipv4.
Unless you want to use all ip's seperately. At this point your ipv6 is your main ip it seems.
 
Thanks, I'll give that a try. It's a while since I set up the IPv6 IP but I believe I linked it.

Update: 78.141.234.188 shows as linked to the IPv6 IP but not the other way around.

1705257884185.png


1705257912029.png
 
Back
Top