[Mono-bugs] [Bug 35628][Wis] New - Dns.Resolve does not resolve local hostnames correctly.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
15 Dec 2002 04:58:49 -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 seank@users.sf.net.

http://bugzilla.ximian.com/show_bug.cgi?id=35628

--- shadow/35628	Sat Dec 14 23:58:49 2002
+++ shadow/35628.tmp.24188	Sat Dec 14 23:58:49 2002
@@ -0,0 +1,36 @@
+Bug#: 35628
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: seank@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Dns.Resolve does not resolve local hostnames correctly.
+
+Description of Problem:
+If you use Dns.Resolve to resolve a hostname that points back to localhost,
+Dns.Resolve always returns 127.0.0.1 instead of your real IP address(es).
+
+Actual Results:
+Dns.Resolve(Dns.GetHostName()) returns 127.0.0.1
+
+Expected Results:
+Dns.Resolve(Dns.GetHostName()) should return all non-localhost IPs assigned
+to your machine.  It should only resolve to 127.0.0.1 if your hostname is
+"localhost".
+
+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.