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


           Summary: IPV6 Support in System.Net
           Product: Mono: Class Libraries
           Version: 2.0.x
          Platform: i586
        OS/Version: Ubuntu
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: System
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          Found By: ---


Description of Problem:
Unable to get an IP6 address from Dns.GetHostEntry(host_name).


Steps to reproduce the problem:
1. private IPAddress GetIPAddress(string host, bool ip6Address) {
    IPHostEntry ipHostInfo = Dns.GetHostEntry(host);
    foreach (IPAddress ip in ipHostInfo.AddressList) {
        if (ip.AddressFamily == AddressFamily.InterNetworkV6 && ip6Address) {
            return ip;
        } else if (ip.AddressFamily == AddressFamily.InterNetwork &&
ip6Address) {
            return ip;
        }
    }
    return null;
}
2. IPAddress ip = GetIPAddress("localhost", Socket.OSSupportsIPv6);
if (ip == null) {
    Console.WriteLine("Unable to resolve host name");
}

Actual Results:
Only returns an InterNetwork address.

Expected Results:
Should return a InterNetworkV6 address.

How often does this happen? 
Always


-- 
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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to