From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17897 invoked by alias); 30 Aug 2013 07:11:29 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 17821 invoked by uid 48); 30 Aug 2013 07:11:25 -0000 From: "kurt at roeckx dot be" To: glibc-bugs@sourceware.org Subject: [Bug network/15726] getaddrinfo() returns incorrect status Date: Fri, 30 Aug 2013 07:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: network X-Bugzilla-Version: 2.17 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kurt at roeckx dot be X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-08/txt/msg00190.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=15726 --- Comment #29 from Kurt Roeckx --- (In reply to Rich Felker from comment #28) > > We should just not use that nameserver anymore (for the current lookup), and if > > we find no nameservers that give us an answer it should result in "no answer" / > > EAI_FAIL. But I'm not sure how detailed we should go with all those things. > > If the nameserver gives response code 5, you could discontinue using > it for the current request, but it probably shouldn't be dropped in > general -- for example, the nameserver might be denying recursion but > serving a local domain only. In any case, EAI_FAIL is the right > response here if the only nameserver(s) available give(s) response > code 5, since it's not a temporary condition, there's no way to work > around it, and it's neither a positive result nor a negative result. I meant "no answer" / EAI_AGAIN. But I can also see how EAI_FAIL might be a good value for it. One of the reasons for EAI_FAIL could be "local configuration error". -- You are receiving this mail because: You are on the CC list for the bug.