Red Hat Bugzilla – Bug 103953
running nscd no longer lookup on prevents from /etc/hosts lookups
Last modified: 2005-10-31 17:00:50 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624
Description of problem:
While nscd is running, no /etc/hosts lookup are done anymore.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. add a new entry to /etc/hosts or use "localhost"
2. service nscd off
3. ping localhost OR ping <newentry>
-> should work
4. service nscd om
5. ping localhost OR ping <newentry>
-> "hang", running tcpdump on same host shows following queries:
14:01:51.128225 ****.36267 > dns***.domain: 18514+ A? localhost.domain.example.
Actual Results: /etc/hosts is no longer used
Expected Results: /etc/hosts is still used, working like on RHL 7.3
# grep ^hosts /etc/nsswitch.conf
hosts: files dns
# cat /etc/host.conf
Sorry, was caused during wrong permissions on /etc/hosts (640) after system file
Perhaps nscd should log a notice about such problems.