Bug 61123 - glibc-2.2.4 resolver bug
Summary: glibc-2.2.4 resolver bug
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: glibc
Version: 7.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-03-13 22:04 UTC by Need Real Name
Modified: 2016-11-24 15:27 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-12-15 19:31:44 UTC
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2002-03-13 22:04:41 UTC
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):


How reproducible:
Always

Steps to Reproduce:
1. issue command 'host blabla' where 'blabla' any host present in /etc/hosts, 
but absend in DNS. 
2.
3.
	

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 
hostnames.

Additional info:

This is very serious bug and must be fixed immediately.

Comment 1 Alan Cox 2002-12-15 19:31:44 UTC
host does DNS lookups only. It is meant to.



Note You need to log in before you can comment on or make changes to this bug.