Re: /etc/hosts not resolving hostnames

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Johan Martinez wrote:
> I have modified /etc/hosts file with IP address and hostname entries.
> However, host command is returning 'Host vhost1.example.com not found:
> 3(NXDOMAIN)'. Also, apache is returning error on start as '[error] (EAI
> 2)Name or service not known: Could not resolve host name
> vhost1.example.com-- ignoring!' . The ssh worked fine and resolved the
> hostname correctly (ssh
> from same system to itself - just for test). Am I missing something here?
> I thought /etc/hosts will be referred for all lookups. Any help??

Does /etc/resolv.conf exist? If so, what does /etc/nsswitch.conf say -
files first?

        mark

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux