jM.
On Fri, Apr 8, 2011 at 2:01 PM, John R Pierce <pierce@xxxxxxxxxxxx> wrote:
On 04/08/11 11:24 AM, Johan Martinez wrote:> <http://vhost1.example.com> not found: 3(NXDOMAIN)'. Also, apache is
> I have modified /etc/hosts file with IP address and hostname entries.
> However, host command is returning 'Host vhost1.example.com
> returning error on start as '[error] (EAI 2)Name or service not known:> <http://vhost1.example.com> -- ignoring!' . The ssh worked fine and
> Could not resolve host name vhost1.example.com
> resolved the hostname correctly (ssh from same system to itself - justthe 'hosts' command (as well as dig, and nslookup) go directly to DNS,
> for test). Am I missing something here? I thought /etc/hosts will be
> referred for all lookups. Any help??
they do not look at /etc/hosts or nsswitch.conf for that matter.
Apache may well go to DNS also, since your local /etc/hosts file is not
recognized by any systems outside the localhost, and apache IS a server.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos
_______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos