Re: [dmarc-ietf] DNS library queries for DKIM and DMARC records?

"Murray S. Kucherawy" <superuser@gmail.com> Thu, 11 April 2019 04:08 UTC

Return-Path: <superuser@gmail.com>
X-Original-To: dmarc@ietfa.amsl.com
Delivered-To: dmarc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C88AF12009C for <dmarc@ietfa.amsl.com>; Wed, 10 Apr 2019 21:08:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IhcnGgX75zDO for <dmarc@ietfa.amsl.com>; Wed, 10 Apr 2019 21:08:48 -0700 (PDT)
Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D9F2A1200B3 for <dmarc@ietf.org>; Wed, 10 Apr 2019 21:08:47 -0700 (PDT)
Received: by mail-lf1-x12f.google.com with SMTP id r25so3489987lfn.13 for <dmarc@ietf.org>; Wed, 10 Apr 2019 21:08:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rFIZiyaJ7W1AGAnUcJeyShKmS4nybuyrGdfvsvKyvhw=; b=F7ztS/WLGGe2OYpuCokpa3NUrroBxq+HaO3+BR5Oe69cyPwVnRHcjegzyWpmOP3QRs mlcoq6rsWTi4e9hhWgdwDrVo2OvsqmRpYgf2lYOTzfiyeUDlNx2Nr3mcyFv01gmfdoVq Bt/YE16M5zmzvyX2GGYY5LQ3bCgWXm3GIDtR8EPhF2r++vWpn8xqDML6/1TC2hEjVYuV 7nlfmCzyfn5QbUnQ/oj8yXyb0Y/Xf5B450NIfuMXSUTKDSX8Rq39gzkdHFTSnczqkUMi JEOWMwfFIwZUCjQu5CBYrKiKXsD0se55Rjrt1sDGaWVbevTGjCbAjwIG+H2arf0JrpZj G1LQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rFIZiyaJ7W1AGAnUcJeyShKmS4nybuyrGdfvsvKyvhw=; b=NcLPJezXVps9KboFkadyaTjMVrRhav0qcruXA1FSo1nkGWuBVd/U75j0cBbOBQFWeA YAwqyAmGf9kOuto+wP4bng8XZ8V5Hr8VsUw7vUaYM4lUl2dpVIJTQOm/G2YHVYfC3gfo iBSggmdo6UUO9kiAyE+kFDDcYy+UxwMvKb4FanedAQhG+n71r1TH7uiPtJVoPzKXRDte VYARtbcOjROw1yw9EDX0L9Agfrv+KCIFC2HNf44NQAZOhHEJtAeLCDD9hRR5v7oSRWsV cfbojNtAGWo4jOSyz7HwQrdEAsUMuD167HV3rvFqS4HUl8I+fe8IicdQqfM7K8tWQDpz NirQ==
X-Gm-Message-State: APjAAAXVmg1UDz5qU6n4xHxq4sTq3CC6BZcjqDkkzFvA5nGU8725TUt/ bJmTEVmDmRs3Pz5yUngwk0fiCdNBJVaYrwo7MziqxA==
X-Google-Smtp-Source: APXvYqy6QNiIdzwGTHsfR9SJrg8yvnPUxg2X2afv17BEh3tHTjzj9hs1t7PjI90We0lNvx848p1dGfYiRSb5cPHcKtk=
X-Received: by 2002:ac2:52a6:: with SMTP id r6mr24723708lfm.27.1554955725906; Wed, 10 Apr 2019 21:08:45 -0700 (PDT)
MIME-Version: 1.0
References: <571ce243-a8b0-094d-0d59-06f1432bd741@gmail.com>
In-Reply-To: <571ce243-a8b0-094d-0d59-06f1432bd741@gmail.com>
From: "Murray S. Kucherawy" <superuser@gmail.com>
Date: Wed, 10 Apr 2019 21:08:31 -0700
Message-ID: <CAL0qLwaJsZmAZhsEhLWonBtr9bU8GTDg35ZwmeSn3fN4d=OrKQ@mail.gmail.com>
To: Dave Crocker <dcrocker@gmail.com>
Cc: IETF DMARC WG <dmarc@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000af271c0586395762"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dmarc/Lc747_R1H3miKzBN_hIn17jL068>
Subject: Re: [dmarc-ietf] DNS library queries for DKIM and DMARC records?
X-BeenThere: dmarc@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Domain-based Message Authentication, Reporting, and Compliance \(DMARC\)" <dmarc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dmarc>, <mailto:dmarc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dmarc/>
List-Post: <mailto:dmarc@ietf.org>
List-Help: <mailto:dmarc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dmarc>, <mailto:dmarc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Apr 2019 04:08:50 -0000

On Wed, Apr 10, 2019 at 12:37 PM Dave Crocker <dcrocker@gmail.com> wrote:

> For the software you know about, how are queries to the DNS performed,
> to obtain the TXT records associated with DKIM and/or DMARC?
>

By default, libopendkim and libopendmarc use the standard C library
functions (i.e., res_*()) to do these queries and await replies.  The
specific functions are res_query() and res_nquery() depending on which
version of the library is available.

I believe both can be configured to use libunbound instead (certainly
libopendkim can).

-MSK