Problem with DNS setup...

faeronsayn

Well-known member
The Email I get

IMPORTANT: Do not ignore this email.

Your hostname (server2.domain.com) could not be resolved to an
IP address. This means that /etc/hosts is not set up correctly,
and/or there is no dns entry for server2.domain.com. Please be
sure that the contents of /etc/hosts are configured correctly, and
also that there is a correct 'A' entry for the domain in the zone
file.

Some or all of these problems can be caused by /etc/resolv.conf
being setup incorrectly. Please check that 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' option under 'Dns Functions' in
your Web Host Manager.

I am mainly worries about this part

This means that /etc/hosts is not set up correctly,
and/or there is no dns entry for server2.domain.com. Please be
sure that the contents of /etc/hosts are configured correctly, and
also that there is a correct 'A' entry for the domain in the zone
file.


If you guys have any idea what's wrong or know how to solve it let me know.

I've also done the "Add an A entry for your hostname"
 
There's not enough information here about exactly what the problem is, or how you got here. Who sent you this email? Are you acting as your own DNS? Have you created the zone files for your domains in bind? Have you restarted named since creating the records? Is your domain name pointing to the correct DNS IPs?
 
There's not enough information here about exactly what the problem is, or how you got here. Who sent you this email? Are you acting as your own DNS? Have you created the zone files for your domains in bind? Have you restarted named since creating the records? Is your domain name pointing to the correct DNS IPs?

This is from cPanel/WHM, the email at least.

and I am running cloudflare, I can access my domain, but I am not exactly sure why this email is popping up.
 
add this yo your host file

127.0.0.1 localhost.localdomain localhost
# Auto-generated hostname. Please do not remove this comment.
server ip here server2.domain.com server2

replace server ip with your server ip and server2.domain.com with your hostname
 
Top Bottom