From: Brian W. <bwe...@xb...> - 2005-11-24 10:53:16
|
On Thu, 24 Nov 2005, Tord Larsson wrote: > I'm currently using dnsjava version 1.6.4 to make simple lookups (se code > below. Note! I'm not the original author of the code). My question is, does > dnsjava support IPv6 and if so from which version? Will the code below work > for IPv6 or must I make changes to the code? It depends what you mean by "supports IPv6". If you mean DNS records for IPv6, dnsjava has supported AAAA records since 1998 or so. If you mean the ability to actually use AAAA records for making IPv6 connections, that wasn't added until dnsjava 2.0.0. If you mean IPv6 transport between a dnsjava client and a DNS server, that's completely up to the JVM; in the code you included, dnsHost is resolved using the native Java resolver, which means that if the JVM supports IPv6 (Java 1.4 and newer), the connection might use IPv6. If you mean something else, it's hard to say, but 2.0.0 definitely has more IPv6 support than 1.6.4 does. Brian |