[Mono-bugs] [Bug 450804] New: IPV6 Support in System.Net

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Dec 2 04:29:54 EST 2008


           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: mono-bugs at lists.ximian.com
        ReportedBy: alisdair_little at yahoo.com
         QAContact: mono-bugs at lists.ximian.com
          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? 

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