** server can't find hostname.com nxdomain ** server can't find hostname.com nxdomain apache apache

** server can't find hostname.com nxdomain


You should use a DNS server that is able to resolve the name; the one you are using now, at xxx.xxx.32.1, isn't.

Adding the hostname to /etc/hosts doesn't fix it.

This is because nslookup does a DNS lookup always, it does not read the hosts file. Try using getent instead, for example I get:

$ getent hosts rhel64.xxxxx.xxxxx.com176.74.176.178  rhel64.xxxxx.xxxxx.com

(By the way, you should use example.com as an example almost always, so you don't inadvertently link to adult-only websites)