[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
Thu, 19 Aug 2004 06:57:30 -0400 (EDT)


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 dick@ximian.com.

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

--- shadow/63265	2004-08-18 15:50:13.000000000 -0400
+++ shadow/63265.tmp.4142	2004-08-19 06:57:30.000000000 -0400
@@ -83,6 +83,22 @@
 IP for Interface 7: 207.46.244.188
 
 
 ------- Additional Comments From gonzalo@ximian.com  2004-08-18 15:50 -------
 Dick, i think the issue here is that MS returns all the local
 interfaces IP addresses and we're not doing that.
+
+------- Additional Comments From dick@ximian.com  2004-08-19 06:57 -------
+The code is asking for a DNS lookup.  DNS.GetHostName() returns a
+single string.
+
+DNS.GetHostByName() returns as many results as are returned by the DNS
+query.  Nothing in the documentation states that if the hostname is
+the local machine, to iterate the interfaces too.
+
+Hence my assertion that this is a configuration problem.  Does Paco's
+windows machine have multiple A entries in the DNS database? (Bearing
+in mind that they might have been added automatically by a DHCP server.)
+
+And I still think the loopback address is being printed because on the
+linux machine DNS.GetHostName() is returning "localhost".
+