Re: [CentOS] /etc/hosts not resolving hostnames

2011-04-08 Thread Kai Schaetzl
Johan Martinez wrote on Fri, 8 Apr 2011 14:31:32 -0500: > This is working fine on another CentOS system. It doesn't matter if "it works fine". The host command indeed does dns lookups as John Pierce already pointed out and apache does, too. With your experience level I suggest believing him. It

Re: [CentOS] /etc/hosts not resolving hostnames

2011-04-08 Thread Robert Spangler
On Friday 08 April 2011 14:32, the following was written: > On Fri, Apr 8, 2011 at 1:27 PM, wrote: > > 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(NXDOMA

Re: [CentOS] /etc/hosts not resolving hostnames

2011-04-08 Thread Johan Martinez
On Fri, Apr 8, 2011 at 2:39 PM, Dvorkin, Asya wrote: > Try flushing DNS cache: > > /etc/init.d/nscd restart > > nscd is not running. > On Apr 8, 2011, at 3:31 PM, Johan Martinez wrote: > > This is working fine on another CentOS system. This particular install > where host command is failing is

Re: [CentOS] /etc/hosts not resolving hostnames

2011-04-08 Thread Dvorkin, Asya
Try flushing DNS cache: /etc/init.d/nscd restart On Apr 8, 2011, at 3:31 PM, Johan Martinez wrote: This is working fine on another CentOS system. This particular install where host command is failing is trimmed down install using kickstart file. It is working on a system where install is defau

Re: [CentOS] /etc/hosts not resolving hostnames

2011-04-08 Thread Johan Martinez
This is working fine on another CentOS system. This particular install where host command is failing is trimmed down install using kickstart file. It is working on a system where install is default 'Server non-GUI', option given during interactive CD install. I guess this has to do with some missin

Re: [CentOS] /etc/hosts not resolving hostnames

2011-04-08 Thread John R Pierce
On 04/08/11 11:24 AM, 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)N

Re: [CentOS] /etc/hosts not resolving hostnames

2011-04-08 Thread Johan Martinez
On Fri, Apr 8, 2011 at 1:27 PM, wrote: > 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)Nam

Re: [CentOS] /etc/hosts not resolving hostnames

2011-04-08 Thread m . roth
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