[Mono-bugs] [Bug 63265][Nor] Changed - When the AddressList for a machine is requested only loopback address is returned
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 18 Jan 2005 20:54:50 -0500 (EST)
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 miguel@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=63265
--- shadow/63265 2004-08-22 18:12:54.000000000 -0400
+++ shadow/63265.tmp.21971 2005-01-18 20:54:50.000000000 -0500
@@ -1,13 +1,13 @@
Bug#: 63265
Product: Mono: Runtime
Version: unspecified
OS: All
OS Details: tested on Windows XP, Linux SuSe 9.0
-Status: RESOLVED
-Resolution: NOTABUG
+Status: REOPENED
+Resolution:
Severity: Unknown
Priority: Normal
Component: packaging
AssignedTo: gonzalo@ximian.com
ReportedBy: martinf@mfconsulting.com
QAContact: mono-bugs@ximian.com
@@ -132,6 +132,23 @@
Then in that case it looks like the test code here is just doing a
straight DNS lookup irrespective of what the interface is set to, and
windows is setting the DNS info when the interface state changes.
------- Additional Comments From gonzalo@ximian.com 2004-08-22 18:12 -------
ok, seems like it's not a bug.
+
+------- Additional Comments From miguel@ximian.com 2005-01-18 20:54 -------
+We could handle the special case where the hostname passed to the
+GetHostByName is the result of `gethostname'.
+
+If so, we could return all of the IPAddresses associated with the
+hostname, all of the interfaces on the system.
+
+This will be highly unportable code though.
+
+Am just reopening to keep this issue around, our behavior is clearly
+correct; but I can see why people will be using this API.
+
+The only portable thing we can do on Unix to find out the IP
+address being used is to connect to a system; and then query the
+credentials to extract the ip address that the kernel used to
+connect (this is what FTP clients do when they send the PORT command)