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

Scott Kitterman <sklist@kitterman.com> Thu, 11 April 2019 04:29 UTC

Return-Path: <sklist@kitterman.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 E2817120168 for <dmarc@ietfa.amsl.com>; Wed, 10 Apr 2019 21:29:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=kitterman.com header.b=txlQOgQO; dkim=pass (2048-bit key) header.d=kitterman.com header.b=dyZ4e1nq
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 sUeNQ_hJuPOO for <dmarc@ietfa.amsl.com>; Wed, 10 Apr 2019 21:29:30 -0700 (PDT)
Received: from interserver.kitterman.com (interserver.kitterman.com [64.20.48.66]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C831D1200CC for <dmarc@ietf.org>; Wed, 10 Apr 2019 21:29:30 -0700 (PDT)
Received: from interserver.kitterman.com (interserver.kitterman.com [64.20.48.66]) by interserver.kitterman.com (Postfix) with ESMTPS id CB090F80486 for <dmarc@ietf.org>; Thu, 11 Apr 2019 00:29:29 -0400 (EDT)
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=kitterman.com; i=@kitterman.com; q=dns/txt; s=201903e; t=1554956969; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type : from; bh=u9OA0WCKTkDCkIymm5tpSv2P+Q+Q2r92JTvSLdvSk1g=; b=txlQOgQOLCzz5cBi2AXjRWxd0d1GAJXaO6JWzgrIeM4Qcl1DubHQa5qr 0zmukLxiAJPYS7zUcJ5hYqs6fS6sBQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kitterman.com; i=@kitterman.com; q=dns/txt; s=201903r; t=1554956969; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type : from; bh=u9OA0WCKTkDCkIymm5tpSv2P+Q+Q2r92JTvSLdvSk1g=; b=dyZ4e1nqG1+d+L7w2hIXNH9meLNIguxM7dvs3tKxiCayTzMQjO7CX/Jd in0+a4mUYDDwRqD84Jw7dlrAEMl1iPkZPpy9ELHNszNdV6YYQDJmgD5nrd lNyF51MmA/aM+59bSaPe6dpyf9TS9OCaJqavx953w11k4NXR0lKgEaypfd soGaZeRLYmt7o/GWKXtAtpITSkQdo1nwES1OCozjUXWnTsUSvpZOYxFz3d VwFlqKzZnnQx2TSHSXE6nu+Uv99R3BZ5pjnF7McY+8k9ufEZXkZGUuc3d3 3guqDMLZX7C2Etckzb5eVViedLwSF8OMdIKRIJe50p7Aj7Vprhxd0Q==
Received: from kitterma-e6430.localnet (static-72-81-252-22.bltmmd.fios.verizon.net [72.81.252.22]) by interserver.kitterman.com (Postfix) with ESMTPSA id 8E493F8038A for <dmarc@ietf.org>; Thu, 11 Apr 2019 00:29:29 -0400 (EDT)
From: Scott Kitterman <sklist@kitterman.com>
To: dmarc@ietf.org
Date: Thu, 11 Apr 2019 00:29:28 -0400
Message-ID: <4298318.26pBuaHoxp@kitterma-e6430>
User-Agent: KMail/4.13.3 (Linux/3.13.0-164-generic; KDE/4.13.3; x86_64; ; )
In-Reply-To: <b8667ee0-d0c5-6bc2-c20e-1150ce910133@gmail.com>
References: <571ce243-a8b0-094d-0d59-06f1432bd741@gmail.com> <8787907.T9Vn2QKn0N@kitterma-e6430> <b8667ee0-d0c5-6bc2-c20e-1150ce910133@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dmarc/IJic2LNZ1z1m3d0o7S2ucAgeC8Q>
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:29:32 -0000

On Wednesday, April 10, 2019 09:16:56 PM Dave Crocker wrote:
> On 4/10/2019 8:37 PM, Scott Kitterman wrote:
> >>>> print(response.additional)
> > 
> > []
> 
> Turns out that's what I was especially hoping to see.
> 
Great.  I checked and dnspython can do that too:

>>> import dns.resolver
>>> a = dns.resolver.query('google.com', dns.rdatatype.TXT)
>>> print(a.response.additional)
[]

Scott K