7
Vote

Add IPv6 Network Support

description

Currently DnDns only supports IPv4 to query DNS Servers. As IPv6 become more prevalent, DnDns needs to support IPv6 networks as well.

file attachments

comments

softlion wrote Jan 30, 2012 at 4:15 PM

Check this lib, it provides ipv6 support.
http://arsofttoolsnet.codeplex.com/

jmonty wrote Jan 30, 2012 at 5:00 PM

Looks like ArsoftTools is based off my library, however the author failed to honor my license.

jmonty wrote Jan 30, 2012 at 5:07 PM

Perhaps I spoke too soon. The File structure and naming for ArsoftTools is similar but the logic looks fairly different. Looks like a nice library either way. :)

wrote Aug 17, 2012 at 8:29 AM

tjeerdhans wrote Aug 17, 2012 at 8:29 AM

To be able to use ipv6 DNS server addresses, I added the AddressFamily to the TcpClient and UdpClient constructors in DnsQueryResponse.cs:

private static byte[] ResolveTcp(byte[] bDnsQuery, IPEndPoint ipep)
    {
        TcpClient tcpClient = new TcpClient(ipep.AddressFamily);
...
and
    private byte[] ResolveUdp(byte[] bDnsQuery, IPEndPoint ipep)
    {
        // UDP messages, data size = 512 octets or less
        UdpClient udpClient = new UdpClient(ipep.AddressFamily);
...

Works for me :)

wrote Aug 17, 2012 at 8:30 AM

wrote Feb 14, 2013 at 3:47 AM

wrote Sep 7, 2014 at 7:47 PM