From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by sourceware.org (Postfix) with ESMTPS id A15C33858D28 for ; Mon, 6 Nov 2023 00:43:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A15C33858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=zplane.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=zplane.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A15C33858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=64.147.123.20 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699231441; cv=none; b=OutNZaiKV2URfTBt2A/4epP0tgVkfTQoyRUpxQ0YDSAkawJ+mUAvg17NTPUKClHSZxYPwWJYU4Us0bNxATWy2D1kkUbLf3D3mJyA25RXlXLNIvNF5GeK8nCZzClEfwplVZLLKtXnOtWPBpypxAF8SsacUMa0C56UpKBFxZVbBkE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699231441; c=relaxed/simple; bh=eNfR1H+guBEeJVSvReE0k3zwVS6vHuqPntjYEL8D5JM=; h=DKIM-Signature:DKIM-Signature:Date:From:To:Subject:Message-ID: MIME-Version; b=q6r1c0S7D5vBxCyVwINJ8W4FI7yVeq3hGcKWx1P2tF0lWrY5oDtVg4gnnSlEHGrrS5PSDwB7dK/b18G+ZldB7L8eQ9BAcdIoREJ6F2QqHsIcO1eomVZWdT7/Uty9/5moZhNjbrFDQFKVvvRJeLtt1FX+FZHMI2NNhOepHcGJdZo= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id DDA6632001FC; Sun, 5 Nov 2023 19:43:56 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sun, 05 Nov 2023 19:43:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zplane.com; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to :reply-to:sender:subject:subject:to:to; s=fm2; t=1699231436; x= 1699317836; bh=fpyiM90xOCXTUXRGAHFFl2zs8PShgjgiRZ+gGKaG7Fs=; b=p ZZPvAVoa8Ma8aGXNrK6yEx8lQfKiGbY75xb9uLFVnQxqQ9mTFyzxKmizTpqkZqca g1R2qbvlbJlkzwcXBdIlOsUGmNHtSEPIfTmZ+OlEKwvDcHfA8E07WcmnmlyenwI+ X1ziy/KshYrr+P32CnHdJs4/S/rfgdUmlBP4PZwhGB6gIE9g2owtR1cklJfhu2zV ZjZZsXw4AFwDIVfzcxR38pABPb+/VW9tCCvflpyXUlDhpjfuWo8EylE96xQJjatF Jm3IDNInjlfLHxP6vNMaegEpfUAw4bVgMwEU027W+Z5AZbZzrYtQJB0kVaVGGD4Y E/mNTcKL7rbLxXpVW8chw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1699231436; x=1699317836; bh=f pyiM90xOCXTUXRGAHFFl2zs8PShgjgiRZ+gGKaG7Fs=; b=n/CdOeafattiSu9i/ DpEkYnfpEdXFpKn1NUfy1y215xSdaWM2SkZ0w63Th5Y4UJsOsLIC+rzISJJ3eCDY 6Jg4v1nqK63xCdpQ3dJ01SBFZkMLtfHxIUhQ+lc7EEzaRBO3Wlfi5gCHbk+vQ4X8 QETE1pmNWPubOfOrrJRdAVHrvdXJoPA2KoEdpxOolIM0ke2CvneysOarE700Xshx y9qSpmb1AxORG+avJkESSP0/eioNFBvbInlPBkJdrNif7aPEBkYH3Q2VqycSV06C bDhxzBFRH6JAmKWktsbKI/krKjZ0lNSSoKGeSNzfX5r7sBhq9y8AsomjhINq9oAl /pE6A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddufedgvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkrhhfgggtuggjsehttdertddttddvnecuhfhrohhmpefilhgv nhhnucfiohhluggvnhcuoehgughgseiiphhlrghnvgdrtghomheqnecuggftrfgrthhtvg hrnhepkeeutdeukeffuefgffeiueehueekgfdtledvleevueevhfegjeegvdffveelheeu necuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehgughgseiiphhlrghnvgdrtghomh X-ME-Proxy: Feedback-ID: i002c41f6:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 5 Nov 2023 19:43:55 -0500 (EST) Received: by gc.zplane.com (Postfix, from userid 501) id 0F00D40129; Sun, 5 Nov 2023 17:43:55 -0700 (MST) Date: Sun, 5 Nov 2023 17:43:55 -0700 From: Glenn Golden To: Florian Weimer Cc: libc-help@sourceware.org Subject: Re: getent ahostsv4 seems to interact with network interface addressing Message-ID: Reply-To: gdg@zplane.com References: <875y2ggdv9.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <875y2ggdv9.fsf@mid.deneb.enyo.de> X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,JMQ_SPF_NEUTRAL,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Florian Weimer [2023-11-05 21:10:50 +0100]: > * Glenn Golden: > > > System: > > Arch linux, glibc 2.38-7, kernel 6.1.59-1, commodity i686 laptop. > > > > Description of issue: > > Not sure if this is a bug or just a misunderstanding on my part as to how > > getent ought to be behaving when attempting lookups using the ahostsv4 > > database, expecting it to query and return results from /etc/hosts. > > > > The behavior of "getent ahostsv4 HOSTNAME" seems to strangely depend on > > whether there are any network interfaces presently having an assigned v4 > > address, as demonstrated in detail in "Steps to reproduce" below. > > By default, getent uses AI_ADDRCONFIG under the covers, and what you > see is the expected behavior of that getaddrinfo option. Recent glibc > versions have a getent option that switches of AI_ADDRCONFIG: > > -A, --no-addrconfig do not filter out unsupported IPv4/IPv6 addresses > (with ahosts*) Which getent.1 man page is the above excerpted from? It doesn't appear in the latest man-pages release (6.05.01-1 pkg on Arch) and it's also not in the git man-pages tree at kernel.org: https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/man1/getent.1 Am I looking in the wrong place for latest man pages?