Hostname A record warning e-mail

frank84

Registered
Jan 27, 2011
2
0
51
We just received this message this morning :

------------------------------------------------------------------------------------------

IMPORTANT: Do not ignore this email.
The hostname (server.dostov.com) resolves to . It should resolve to 74.50.121.68. Please be sure to correct /etc/hosts as well as the 'A' entry in zone file for the domain.

Some are all of these problems can be caused by
/etc/resolv.conf being setup incorrectly. Please check this file if you
believe everything else is correct.


You may be able to
automatically correct this problem by using the ' Add an A entry for your
hostname ' under ' Dns Functions ' in your Web Host Manager

------------------------------------------------------------------------------------------

Now we cannot access our cPanel, anyone know how to fix this?

Thanks
 

LinuxTechie

Well-Known Member
Jan 22, 2011
502
10
68
cPanel Access Level
Root Administrator
Hi Frank,

Can you please check whether the /etc/hosts file is having the right IP 74.50.121.68. If not correct it with this IP.
Also check whether the command hostname -i returns the same IP. If not you need to correct this. If you are still facing issues paste the resolv.conf for a further check on it.

You can check whether the issue is corrected using the below given cpanel script.

/scripts/ipcheck
If a mail is sent while executing this script it means issue persists, o/w it is resolved.
One more thing is that this no relation with the issue you are facing with cPanel. What error are you receiving while accessing cPanel?
 

frank84

Registered
Jan 27, 2011
2
0
51
It's not an error but i'm getting this when I tried to connect to cPanel :

This server is currently not licensed. Please contact the server administrator. Other services available on this server such as web services are likely functioning normally. (License not activated)

And, sorry to ask but i'm a newbie in this, how to I check whether or not the /etc/hosts file is having the right IP 74.50.121.68?
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
24
143
Houston, TX
cPanel Access Level
Root Administrator
The important issue, in regard to licensing, is to make sure that your server's license requests are coming from the correct IP address. Our license servers work based on which IP address they "see" the request coming from. To check this, run the following command on the server as root:

Code:
# curl http://www.cpanel.net/apps/myip/
If the IP address that is returned is not the licensed IP address, then you will need to do one of two things:

  • Change the routing of your server and network so that outbound requests come from the correct IP address, or;
  • Contact our customer service department and ask to have the licensed IP address changed to the one that was returned by the curl command.

The warning you received about the hostname A record is important, but would not by itself cause you to not be able to access cPanel. It is not something that would cause the license to be invalid. The /etc/hosts file, however, does need to be properly configured. It should contain the following, at a minimum:

Code:
127.0.0.1       localhost.localdomain  localhost
74.50.121.68    hostname.domain.tld    hostname
Replace "hostname.domain.tld" with your server's actual hostname containing the domain name (the hostname containing the domain name is what makes it "fully qualified"). It should be in the format host.domain.tld. For example, host.mydomain.com is a theoretically valid hostname.

Replace "hostname" with the server's short hostname. This is the same hostname, except without the domain and the top-level domain (.com, .org, .edu, etc.). For example, host is theoretically valid.

If you need further assistance with this, please feel free to submit a ticket and we will be happy to log into your server and help you on an individual basis.