Red Hat Bugzilla – Bug 61123
glibc-2.2.4 resolver bug
Last modified: 2007-04-18 12:40:55 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; T312461)
Description of problem:
function gethostby* never try to access files /etc/host.conf and /etc/hosts
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. issue command 'host blabla' where 'blabla' any host present in /etc/hosts,
but absend in DNS.
Actual Results: The host program will fail to resolve it. This is true for
both direct and back resolving. Using strace I saw that files /etc/host.conf
and /etc/hosts never accessed.
Expected Results: Either file /etc/host.conf or /etc/nsswitch conf should be
accessed first. The further depends on configuration in this file. Current
glibc ignore all this configuration files and always uses DNS to resolve
This is very serious bug and must be fixed immediately.
host does DNS lookups only. It is meant to.