[Mono-bugs] [Bug 636517] New: System.Net.Dns doesn't resolve any IPv6 addresses

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Sep 2 01:54:26 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=636517

https://bugzilla.novell.com/show_bug.cgi?id=636517#c0


           Summary: System.Net.Dns doesn't resolve any IPv6 addresses
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: rbloom at foxular.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Description of Problem:
System.Net.Dns.GetHostAddresses only returns IPv4 addresses, and does not
return any available IPv6 addresses.

Source of small test program:
using System;
using System.Net;
class DNSTest {
    static void Main() {
        String Hostname = "www.kame.net";
        IPAddress[] IPs = Dns.GetHostAddresses(Hostname);
        Console.WriteLine("Found {0} IP addresses for {1}",
IPs.Length,Hostname);
        foreach (IPAddress i in IPs) {
            Console.WriteLine(i.ToString());
        }
    }
}


Actual Results:
(With Mono 2.6.4)
Found 1 IP addresses for www.kame.net
203.178.141.194


Expected Results:
(With .NET)
Found 2 IP addresses for www.kame.net
2001:200:dff:fff1:216:3eff:feb1:44d7
203.178.141.194

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list