From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua1-x931.google.com (mail-ua1-x931.google.com [IPv6:2607:f8b0:4864:20::931]) by sourceware.org (Postfix) with ESMTPS id 80372385840A for ; Sun, 24 Jul 2022 14:07:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 80372385840A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=systemhalted.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=systemhalted.org Received: by mail-ua1-x931.google.com with SMTP id y12so2495991uad.10 for ; Sun, 24 Jul 2022 07:07:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=systemhalted.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/1pTPfxi0mJBsES0gOv0DnheCbNCVcWSCZhtkkiSpC4=; b=VhCTbkrzJDdoSdANg0RBw+2jNUJgVv6ummowtz9LCkYiUvDYwgvJHchzmAATsA9gqJ Ln05sSaE5DvMhP7a5MVhaoxkRJzO3mSEPo3tNZuW5/mD5cV7e96g7NcYZdS+olVryPlN 8bjTFHPK+wck4bDIf/X9y01RCYSgMmdgmOX6U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/1pTPfxi0mJBsES0gOv0DnheCbNCVcWSCZhtkkiSpC4=; b=KrQjoshi+Q6z/kQoQAdW+JQQdaOKiVhRgVppZX0XaKuSpP7NDNNbhoTp1MYlNZ6EWf u0uJkyZQdX/pAvwKc0O1Iigp+xzbJzHr8aSVe/a8Uvb2PHI2NE0ldMfNCPdEOnlc/tVs 9EGoR1gJ1Pjk+7JYalrN0kEZVwI71WpQYeYnf6N7ojrMQja0+4ZPnS45OxNKCTVMT+HG JHfZQzPYz6TKeUaoMMdgwo4LD0NX0Hn/P8CptzDHuqkt4Va4BBoupY12QGxvgo+gedTb mdFRsAU4AX8NkKKGYHhqmTHVtN/DY/TCorEExv5e7PvC28x/ieRNyjYBPxEtxKzIDgbu 1UEw== X-Gm-Message-State: AJIora91j5oWFR3243txh0N30bIlpTbNUcUEd5dHeM+VeT//xKGL/HjH v83BBwnIR8zRshxNxasLHTvagFt5Qeebn6VXaTFLsnCp1bU= X-Google-Smtp-Source: AGRyM1tsGW7LJddJGaFyLG58peGzxF2QoTFCRJlSiHa/TWBypFG2Ly1bZxuplVR929en5CP+EG21Lh2uP4YEt9pXh68= X-Received: by 2002:a9f:32c9:0:b0:384:2ac0:1ea with SMTP id f9-20020a9f32c9000000b003842ac001eamr2096191uac.74.1658671632772; Sun, 24 Jul 2022 07:07:12 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Carlos O'Donell" Date: Sun, 24 Jul 2022 10:07:02 -0400 Message-ID: Subject: Re: nsswitch.conf - db service for hosts To: Peter Polgar Cc: libc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_00, DKIM_INVALID, DKIM_SIGNED, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jul 2022 14:07:15 -0000 On Sat, Jul 23, 2022 at 6:19 PM Peter Polgar via Libc-help wrote: > I am trying to use the db service in nsswitch.conf. I couldn't make it work > so I decided to get some hints from the source code. > A comment in test-netdb.c:310 says that "db is not implemented for hosts". > Also seen in the nss/Makefile:128 that "hosts" is filtered out from the > list of dbs. > Do these mean that db service is not implemented for hosts? Correct, hosts, network, key and alias are not provided for the db service. Not all backends provide all services. > If it is implemented how can I find the path where nsswitch is looking for > the db? It is not implemented. Not all backing stores are good choices for the kind of data to cache and the values that need to be cached. Adding hosts would require an evaluation of how the data should be stored and invalidated. Cheers, Carlos.