[CentOS] /etc/hosts not resolving hostnames
Johan Martinez
jmartiee at gmail.comFri Apr 8 18:24:01 UTC 2011
- Previous message: [CentOS] CentOS-announce Digest, Vol 74, Issue 1
- Next message: [CentOS] /etc/hosts not resolving hostnames
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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?? jM. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20110408/71b4fc39/attachment.html>
- Previous message: [CentOS] CentOS-announce Digest, Vol 74, Issue 1
- Next message: [CentOS] /etc/hosts not resolving hostnames
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list