--
Sincerely,
John Thomas
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
12-07-2009, 12:09 PM
Jon Moore
Name Resolution Broken for One Address
On Monday, December 7, 2009, John Thomas <gmane-2006-04-16@jt-socal.com> wrote:
> I seem to have broken my laptop and have been unable to figure it out.
>
> Name resolution works great, except one address, which seems to be
> resolving to 0.0.0.1. *Could you help me figure out what I have done and
> fix it?
>
> The following lines are in /etc/hosts
> 192.168.11.1 * *dev.example.com
> 192.168.11.1 * *dev1.example.com
>
> Pinging any other address that I try works, except dev.example.com.
>
try having both host names on the same line.
-jon
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
12-07-2009, 12:17 PM
John Thomas
Name Resolution Broken for One Address
On 12/07/2009 05:09 AM, Jon Moore wrote:
>> The following lines are in /etc/hosts
>> 192.168.11.1 dev.example.com
>> 192.168.11.1 dev1.example.com
>>
>> Pinging any other address that I try works, except dev.example.com.
>>
>
> try having both host names on the same line.
Thanks, but this did not help. I had tried many, many things before
posting. I tried this to be sure, but no help.
--
Sincerely,
John Thomas
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
12-07-2009, 12:21 PM
Arturas Skauronas
Name Resolution Broken for One Address
On Mon, Dec 7, 2009 at 3:17 PM, John Thomas
<gmane-2006-04-16@jt-socal.com> wrote:
>>> Pinging any other address that I try works, except dev.example.com.
>> try having both host names on the same line.
>
> Thanks, but this did not help. *I had tried many, many things before
> posting. *I tried this to be sure, but no help.
do you have NetworkManager installed?
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
12-07-2009, 12:29 PM
John Thomas
Name Resolution Broken for One Address
On 12/07/2009 05:21 AM, Arturas Skauronas wrote:
> On Mon, Dec 7, 2009 at 3:17 PM, John Thomas
> <gmane-2006-04-16@jt-socal.com> wrote:
>>>> Pinging any other address that I try works, except dev.example.com.
>>> try having both host names on the same line.
>>
>> Thanks, but this did not help. I had tried many, many things before
>> posting. I tried this to be sure, but no help.
>
> do you have NetworkManager installed?
Yes.
--
Sincerely,
John Thomas
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
12-07-2009, 12:33 PM
John Thomas
Name Resolution Broken for One Address
On 12/07/2009 04:59 AM, John Thomas wrote:
> I seem to have broken my laptop and have been unable to figure it out.
>
> Name resolution works great, except one address, which seems to be
> resolving to 0.0.0.1. Could you help me figure out what I have done and
> fix it?
>
> The following lines are in /etc/hosts
> 192.168.11.1 dev.example.com
> 192.168.11.1 dev1.example.com
Possibly fixed. There is possibly a bad entry in the nscd cache.
Restarting nscd did not solve the problem until I changed /etc/nscd.conf
from: enable-cache hosts yes
to: enable-cache hosts no
I am not sure why restarting (machine and/or nscd daemon) did not clear
the cache.
--
Sincerely,
John Thomas
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
12-07-2009, 12:43 PM
Stephen Harris
Name Resolution Broken for One Address
On Mon, Dec 07, 2009 at 05:33:59AM -0800, John Thomas wrote:
> Possibly fixed. There is possibly a bad entry in the nscd cache.
> Restarting nscd did not solve the problem until I changed /etc/nscd.conf
> from: enable-cache hosts yes
> to: enable-cache hosts no
>
> I am not sure why restarting (machine and/or nscd daemon) did not clear
> the cache.
/var/db/nscd is the persistent cache location - you need to clear that
out after stopping nscd if you want to clear the cache.
--
rgds
Stephen
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
12-07-2009, 01:00 PM
Alan McKay
Name Resolution Broken for One Address
> The following lines are in /etc/hosts
> 192.168.11.1 Â* Â*dev.example.com
> 192.168.11.1 Â* Â*dev1.example.com
>
> Pinging any other address that I try works, except dev.example.com.
Same IP?
Aren't you supposed to do that like this?
192.168.11.1 dev.example.com dev1.example.com
--
“Don't eat anything you've ever seen advertised on TVâ€
- Michael Pollan, author of "In Defense of Food"
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos