Re: Implementing DNS client for support IPv6/IPv4
nisse@lysator.liu.se (Niels Möller ) Mon, 17 November 2003 22:05 UTC
Received: from optimus.ietf.org ([132.151.1.19]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA08634 for <ipv6-archive@odin.ietf.org>; Mon, 17 Nov 2003 17:05:41 -0500 (EST)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 1ALrUp-0001QB-2J for ipv6-archive@odin.ietf.org; Mon, 17 Nov 2003 17:05:23 -0500
Received: (from exim@localhost) by www1.ietf.org (8.12.8/8.12.8/Submit) id hAHM5N6P005459 for ipv6-archive@odin.ietf.org; Mon, 17 Nov 2003 17:05:23 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 1ALrUo-0001Py-Qd for ipv6-web-archive@optimus.ietf.org; Mon, 17 Nov 2003 17:05:22 -0500
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA08589 for <ipv6-web-archive@ietf.org>; Mon, 17 Nov 2003 17:05:09 -0500 (EST)
Received: from ietf-mx ([132.151.6.1]) by ietf-mx with esmtp (Exim 4.12) id 1ALrUm-0007QZ-00 for ipv6-web-archive@ietf.org; Mon, 17 Nov 2003 17:05:20 -0500
Received: from [132.151.1.19] (helo=optimus.ietf.org) by ietf-mx with esmtp (Exim 4.12) id 1ALrUm-0007QW-00 for ipv6-web-archive@ietf.org; Mon, 17 Nov 2003 17:05:20 -0500
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 1ALrUW-0001F2-KS; Mon, 17 Nov 2003 17:05:04 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 1ALrUL-0001CI-DJ for ipv6@optimus.ietf.org; Mon, 17 Nov 2003 17:04:53 -0500
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA08547 for <ipv6@ietf.org>; Mon, 17 Nov 2003 17:04:40 -0500 (EST)
Received: from ietf-mx ([132.151.6.1]) by ietf-mx with esmtp (Exim 4.12) id 1ALrUJ-0007PY-00 for ipv6@ietf.org; Mon, 17 Nov 2003 17:04:51 -0500
Received: from mail.lysator.liu.se ([130.236.254.3]) by ietf-mx with esmtp (Exim 4.12) id 1ALrUI-0007PT-00 for ipv6@ietf.org; Mon, 17 Nov 2003 17:04:50 -0500
Received: by mail.lysator.liu.se (Postfix, from userid 1646) id 729E52903C; Mon, 17 Nov 2003 23:04:49 +0100 (MET)
Received: from sellafield.lysator.liu.se (sellafield.lysator.liu.se [130.236.254.103]) by mail.lysator.liu.se (Postfix) with ESMTP id 773D0156E; Mon, 17 Nov 2003 23:04:47 +0100 (MET)
Received: from sellafield.lysator.liu.se (smmsp@localhost [127.0.0.1]) by sellafield.lysator.liu.se (8.12.10/8.8.7) with ESMTP id hAHM4lCM026803; Mon, 17 Nov 2003 23:04:47 +0100 (MET)
Received: (from nisse@localhost) by sellafield.lysator.liu.se (8.12.10/8.12.8/Submit) id hAHM4hSJ026799; Mon, 17 Nov 2003 23:04:44 +0100 (MET)
X-Authentication-Warning: sellafield.lysator.liu.se: nisse set sender to nisse@lysator.liu.se using -f
To: "sasson, shuki" <sasson_shuki@emc.com>
Cc: ipv6@ietf.org
Subject: Re: Implementing DNS client for support IPv6/IPv4
References: <33CE6457C7003A478381BCD0B584DEC50274139D@srmoon.eng.emc.com>
Content-type: text/plain; charset="iso-8859-1"
Content-transfer-encoding: 8bit
From: nisse@lysator.liu.se
Date: Mon, 17 Nov 2003 23:04:43 +0100
In-Reply-To: <33CE6457C7003A478381BCD0B584DEC50274139D@srmoon.eng.emc.com>
Message-ID: <nn3ccm4pok.fsf@sellafield.lysator.liu.se>
Lines: 26
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
X-Spam-Status: No, hits=-4.0 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_GNUS_UA, X_AUTH_WARNING autolearn=ham version=2.55-lysator_tokaimura_1.1
X-Spam-Checker-Version: SpamAssassin 2.55-lysator_tokaimura_1.1 (1.174.2.19-2003-05-19-exp)
Content-Transfer-Encoding: 8bit
Sender: ipv6-admin@ietf.org
Errors-To: ipv6-admin@ietf.org
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=unsubscribe>
List-Id: IP Version 6 Working Group (ipv6) <ipv6.ietf.org>
List-Post: <mailto:ipv6@ietf.org>
List-Help: <mailto:ipv6-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=subscribe>
Content-Transfer-Encoding: 8bit
Content-Transfer-Encoding: 8bit
"sasson, shuki" <sasson_shuki@emc.com> writes:
> 1. What QTYPE should I use in order to get all the IPv4 and IPv6
> addresses A, AAAA, A6? Is that possible through one query or multiple
> queries are needed?
I'n not really a DNS expert, but I've been hacking the adns resolver
to add IPv6 support, and my conclusions are as follows:
1. Make two separate requests for A and AAAA. Preferably, send both
in parallel. In theory, you could make a single request with
QDCOUNT=2, but then bind (and probably other name server software
as well) will refuse to answer your requests.
2. Don't bother with A6. A6 is controversial, and not needed for
IPv6 support in the forseeable future. I doubt (and hope) that A6
will never be deployed.
If you only want IPv4 addresses, you naturally send only one request,
for A records. If you only want IPv6 addresses, you may want to send
requests for both A and AAAA addresses anyway, and convert any
received A records into "IPv4-mapped IPv6"-addresses to be returned to
the application.
Regards,
/Niels
--------------------------------------------------------------------
IETF IPv6 working group mailing list
ipv6@ietf.org
Administrative Requests: https://www1.ietf.org/mailman/listinfo/ipv6
--------------------------------------------------------------------
- Implementing DNS client for support IPv6/IPv4 sasson, shuki
- Re: Implementing DNS client for support IPv6/IPv4 Niels Möller
- Re: Implementing DNS client for support IPv6/IPv4 Suresh Satapati
- RE: Implementing DNS client for support IPv6/IPv4 sasson, shuki
- Re: Implementing DNS client for support IPv6/IPv4 Mark.Andrews