[Mono-bugs] [Bug 35628][Wis] Changed - Dns.Resolve does not resolve local hostnames correctly.
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
19 Dec 2002 05:36:15 -0000
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by gonzalo@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=35628
--- shadow/35628 Sat Dec 14 23:58:49 2002
+++ shadow/35628.tmp.8938 Thu Dec 19 00:36:15 2002
@@ -1,14 +1,14 @@
Bug#: 35628
Product: Mono/Class Libraries
Version: unspecified
-OS:
+OS: unknown
OS Details:
-Status: NEW
+Status: NEEDINFO
Resolution:
-Severity:
+Severity: Unknown
Priority: Wishlist
Component: System.Web
AssignedTo: mono-bugs@ximian.com
ReportedBy: seank@users.sf.net
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -31,6 +31,34 @@
How often does this happen?
All the time.
Additional Information:
This is a common way for Windows programmers to determine the current
machine's IP address.
+
+------- Additional Comments From gonzalo@ximian.com 2002-12-19 00:36 -------
+I tried this program in both *nix and windows (MS and mono):
+
+using System;
+using System.Net;
+
+class C
+{
+ static void Main ()
+ {
+ IPHostEntry entry = Dns.Resolve (Dns.GetHostName ());
+ Console.WriteLine ();
+ foreach (IPAddress a in entry.AddressList)
+ Console.WriteLine (a);
+
+ Console.WriteLine ();
+ foreach (string a in entry.Aliases)
+ Console.WriteLine (a);
+ Console.WriteLine ();
+ Console.WriteLine (entry.HostName);
+ }
+}
+
+And it works fine.
+
+close the bug?
+