[DNSOP] interop problems with getaddrinfo() address selection

Tony Finch <dot@dotat.at> Tue, 04 December 2007 21:44 UTC

Return-path: <dnsop-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1IzfZX-0006g0-3K; Tue, 04 Dec 2007 16:44:55 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1IzfZV-0006eH-Rr for dnsop@ietf.org; Tue, 04 Dec 2007 16:44:53 -0500
Received: from ppsw-3.csi.cam.ac.uk ([131.111.8.133]) by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1IzfZV-0001FR-Bb for dnsop@ietf.org; Tue, 04 Dec 2007 16:44:53 -0500
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]:46024) by ppsw-3.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.153]:25) with esmtpa (EXTERNAL:fanf2) id 1IzfZT-0006SL-BH (Exim 4.63) (return-path <fanf2@hermes.cam.ac.uk>); Tue, 04 Dec 2007 21:44:51 +0000
Received: from fanf2 (helo=localhost) by hermes-1.csi.cam.ac.uk (hermes.cam.ac.uk) with local-esmtp id 1IzfZT-0007Jn-FT (Exim 4.67) (return-path <fanf2@hermes.cam.ac.uk>); Tue, 04 Dec 2007 21:44:51 +0000
Date: Tue, 04 Dec 2007 21:44:51 +0000
From: Tony Finch <dot@dotat.at>
X-X-Sender: fanf2@hermes-1.csi.cam.ac.uk
To: dnsop@ietf.org
Message-ID: <Pine.LNX.4.64.0712042040290.24448@hermes-1.csi.cam.ac.uk>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset="US-ASCII"
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 93238566e09e6e262849b4f805833007
Cc: Ian Jackson <ian@davenant.greenend.org.uk>
Subject: [DNSOP] interop problems with getaddrinfo() address selection
X-BeenThere: dnsop@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: IETF DNSOP WG mailing list <dnsop.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/dnsop>, <mailto:dnsop-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/dnsop>
List-Post: <mailto:dnsop@ietf.org>
List-Help: <mailto:dnsop-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/dnsop>, <mailto:dnsop-request@ietf.org?subject=subscribe>
Errors-To: dnsop-bounces@ietf.org

Rule 9 of RFC 3484 specifies that the IP addresses (v4 and v6) returned by
getaddrinfo() should be sorted according to the size of their common
prefix with the local host's chosen source IP address. This defeats DNS
round robin load balancing which has led to some severe operational
problems. DNS round robin needs to be documented in an RFC, and RFC 3484
should be updated with rule 9 deleted or substantially modified for
compatibility with DNS round robin.

Ian Jackson has written a thorough description of the problem from the
perspective of a proposal that Debian's version of glibc should have the
troublesome sorting behaviour removed:

http://lists.debian.org/debian-ctte/2007/11/msg00029.html

FreeBSD's getaddrinfo() only implements Rule 9 if the kernel's address
selection policy is configured, which is not done by default so DNS round
robin is passed through.

Tony.
-- 
f.a.n.finch  <dot@dotat.at>  http://dotat.at/
FISHER GERMAN BIGHT HUMBER THAMES DOVER WIGHT PORTLAND SOUTHWEST 5 TO 7,
INCREASING GALE 8 AT TIMES. MAINLY ROUGH. RAIN THEN SHOWERS. MODERATE OR POOR
BECOMING GOOD.

_______________________________________________
DNSOP mailing list
DNSOP@ietf.org
https://www1.ietf.org/mailman/listinfo/dnsop