[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#211359: marked as done (libc6: localhost resolution involving unnecessary DNS request in getaddrinfo)



Your message dated Mon, 11 Jul 2005 14:43:19 -0400 (EDT)
with message-id <Pine.BSO.4.58.0507111434560.19039@grex.cyberspace.org>
and subject line too old and merged
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 17 Sep 2003 09:42:57 +0000
>From olivier.berger@int-evry.fr Wed Sep 17 04:42:45 2003
Return-path: <olivier.berger@int-evry.fr>
Received: from prasinite.int-evry.fr [157.159.110.117] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 19zYpg-0001Vs-00; Wed, 17 Sep 2003 04:42:45 -0500
Received: from prasinite.int-evry.fr
	([127.0.0.1] helo=localhost.localdomain ident=olivier)
	by prasinite.int-evry.fr with esmtp (Exim 3.36 #1 (Debian))
	id 19zYpf-00010S-00
	for <submit@bugs.debian.org>; Wed, 17 Sep 2003 11:42:43 +0200
Subject: libc6: localhost resolution involving unnecessary DNS request in
	getaddrinfo
From: Olivier Berger <olivier.berger@int-evry.fr>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Mailer: Ximian Evolution 1.0.8 
Date: 17 Sep 2003 11:42:43 +0200
Message-Id: <1063791763.1534.276.camel@prasinite>
Mime-Version: 1.0
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0
	tests=HAS_PACKAGE
	version=2.53-bugs.debian.org_2003_9_16
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_9_16 (1.174.2.15-2003-03-30-exp)

Package: libc6
Version: 2.2.5-11.5
Severity: normal

When using libldap in a LDAP client program, which connects to a LDAP
server on localhost on port 389 (default LDAP port), libldap uses
getaddrinfo() to resolve localhost into 127.0.0.1.

The resolution process involves querying the DNS although the
nsswitch.conf entry states :
hosts:          files dns

This can be very confusing, for instance if the DNS entries in
/etc/resolv.conf get configured in a wrong way. In this case, requests
to the DNS will fail after a 5 seconds lag, and LDAP connections will
work, but involving very strange lags of 5 secs...

I ran into this problem recently and described it here :
http://www.openldap.org/lists/openldap-bugs/200309/msg00058.html

I consider that this problem can greatly diminish some services based on
LDAP useability, if unnecessary lags can pop from time to time...

This problem of getaddrinfo's behaviour was addressed also in bug
#160596, but the behaviour described there was not concerning localhost.

I'd assume the resolution of localhost should somehow be handled
differently than the one of other machine names... so this may not be
considered the same problem exactly.

This may have been corrected in the "testing" version of the glibc, but
had no time to check into the source for differences between the two
versions. But straces of the same LDAP client on a stable or testing
machine configured the same in nsswitch.conf and resolv.conf show that
DNS resolution seems to be no longer attempted.

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux picolibre.int-evry.fr 2.4.21 #1 Mon Sep 15 15:04:20 CEST
2003 i686
Locale: LANG=3DC, LC_CTYPE=3DC

--=20
Olivier BERGER <olivier.berger@int-evry.fr>
Ing=E9nieur Recherche - Dept INF
INT Evry (http://www.int-evry.fr)
OpenPGP-Id: 1024D/6B829EEC



---------------------------------------
Received: (at 109931-done) by bugs.debian.org; 11 Jul 2005 18:40:29 +0000
>From dajo@cyberspace.org Mon Jul 11 11:40:29 2005
Return-path: <dajo@cyberspace.org>
Received: from grex.cyberspace.org [216.86.77.194] (exim)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Ds3Cf-0004Ww-00; Mon, 11 Jul 2005 11:40:29 -0700
Received: from dajo (helo=localhost)
	by grex.cyberspace.org with local-esmtp (Exim 4.42)
	id 1Ds3FP-0000YK-6i; Mon, 11 Jul 2005 14:43:19 -0400
Date: Mon, 11 Jul 2005 14:43:19 -0400 (EDT)
From: Daniel Jonan <dajo@grex.cyberspace.org>
To: 26306-done@bugs.debian.org, 6798-done@bugs.debian.org, 
    159781-done@bugs.debian.org, 109931-done@bugs.debian.org
cc: 76251-done@bugs.debian.org, 89323-done@bugs.debian.org, 
    11147-done@bugs.debian.org
Subject: too old and merged
Message-ID: <Pine.BSO.4.58.0507111434560.19039@grex.cyberspace.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: Daniel Jonan <dajo@cyberspace.org>
Delivered-To: 109931-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

closing



Reply to: