Re: Implicit MX and A RRs

Tony Finch <dot@dotat.at> Fri, 28 March 2008 00:24 UTC

Return-Path: <ietf-bounces@ietf.org>
X-Original-To: ietfarch-ietf-archive@core3.amsl.com
Delivered-To: ietfarch-ietf-archive@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 32BDA28C251; Thu, 27 Mar 2008 17:24:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -98.278
X-Spam-Level:
X-Spam-Status: No, score=-98.278 tagged_above=-999 required=5 tests=[AWL=-0.440, FH_RELAY_NODNS=1.451, HELO_MISMATCH_ORG=0.611, RDNS_NONE=0.1, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g8evr8RL3in3; Thu, 27 Mar 2008 17:24:13 -0700 (PDT)
Received: from core3.amsl.com (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id CE6E53A68DD; Thu, 27 Mar 2008 17:24:05 -0700 (PDT)
X-Original-To: ietf@core3.amsl.com
Delivered-To: ietf@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id F06A83A6823 for <ietf@core3.amsl.com>; Thu, 27 Mar 2008 17:24:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DoYPi1788FYP for <ietf@core3.amsl.com>; Thu, 27 Mar 2008 17:24:02 -0700 (PDT)
Received: from ppsw-9.csi.cam.ac.uk (ppsw-9.csi.cam.ac.uk [131.111.8.139]) by core3.amsl.com (Postfix) with ESMTP id A385D3A6836 for <ietf@ietf.org>; Thu, 27 Mar 2008 17:20:21 -0700 (PDT)
X-Cam-SpamDetails: Not scanned
X-Cam-AntiVirus: No virus found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from hermes-1.csi.cam.ac.uk ([131.111.8.51]:59342) by ppsw-9.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.159]:25) with esmtpa (EXTERNAL:fanf2) id 1Jf2KO-00082h-Up (Exim 4.67) (return-path <fanf2@hermes.cam.ac.uk>); Fri, 28 Mar 2008 00:20:16 +0000
Received: from fanf2 (helo=localhost) by hermes-1.csi.cam.ac.uk (hermes.cam.ac.uk) with local-esmtp id 1Jf2KO-00067q-HN (Exim 4.67) (return-path <fanf2@hermes.cam.ac.uk>); Fri, 28 Mar 2008 00:20:16 +0000
Date: Fri, 28 Mar 2008 00:20:16 +0000
From: Tony Finch <dot@dotat.at>
X-X-Sender: fanf2@hermes-1.csi.cam.ac.uk
To: Matti Aarnio <mea@nic.funet.fi>
Subject: Re: Implicit MX and A RRs
In-Reply-To: <20080327070022.GA18854@paja.nic.funet.fi>
Message-ID: <alpine.LSU.1.00.0803280011300.10284@hermes-1.csi.cam.ac.uk>
References: <200803261141.m2QBfJbT091722@drugs.dv.isc.org> <98BB1843C1A06A1A50D6F2DA@p3.JCK.COM> <47EA61CD.1080605@att.com> <20080327070022.GA18854@paja.nic.funet.fi>
User-Agent: Alpine 1.00 (LSU 882 2007-12-20)
MIME-Version: 1.0
Cc: Tony Hansen <tony@att.com>, ietf@ietf.org, SMTP Interest Group <ietf-smtp@imc.org>
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: IETF Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: ietf-bounces@ietf.org
Errors-To: ietf-bounces@ietf.org

On Thu, 27 Mar 2008, Matti Aarnio wrote:
>
> There will be lots of legacy codes using legacy APIs for long future.
> I do use  getaddrinfo()  API myself, and permit it do all queries to
> get addresses.  Thus it will also query for A in addition to AAAA.
> It can even be ordered to ignore IPv4 or IPv6 as sysadmin wants.

There's an amusing interop issue with getaddrinfo and DNS lookups in MTAs.
In many implementations getaddrinfo will perform SRV lookups for you (as
an extension to /etc/services or getservbyname), so it probably doesn't do
the right thing (or it can be persuaded not to do the right thing by
people with perverse DNS setups). On Mac OS X, the daemon that handles
getaddrinfo has a special case for port 25 which performs MX lookups for
you (like SRV lookups), so it certainly does't do the right thing! Serious
email software needs to talk to the low-level resolver API in situations
when it cares about the detailed semantics of domain resolution, and it
needs a way of talking to the high-level resolver API when the sysadmin
chooses so that /etc/hosts, /etc/nsswitch.conf, and similar platform-
specific settings can do their thing.

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
TRAFALGAR: NORTHWEST VEERING NORTH 4 OR 5. MODERATE OR ROUGH. MAINLY FAIR.
MAINLY GOOD.
_______________________________________________
IETF mailing list
IETF@ietf.org
https://www.ietf.org/mailman/listinfo/ietf