[Mono-bugs] [Bug 64626][Nor] New - Mono's Dns.GetHostName does not behave like the .NET equivalent

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 30 Aug 2004 12:30:21 -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 banderso@novell.com.


--- shadow/64626	2004-08-30 12:30:21.000000000 -0400
+++ shadow/64626.tmp.4203	2004-08-30 12:30:21.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 64626
+Product: Mono: Class Libraries
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: banderso@novell.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Mono's Dns.GetHostName does not behave like the .NET equivalent
+Description of Problem:
+using .NET on Windows I can issue a Dns.GetHostName call and pass in the
+computer name.  The call will return an array of my local addresses except
+the loopback address.  My computer name does not exist in a DNS server nor
+does it exist in a host file.  On Mono, this same setup will return zero
+addresses.  This is reproduced in a ZeroConf setup where the workstation
+assigns itself a local link IP Address.
+Steps to reproduce the problem:
+1. Setup the workstation so it's not rooted in DNS or in a host file
+2. use the .NET call Environment.MachineName property to retrieve
+the machine name 
+3. Pass in the returned machine name to the Dns.GetHostName call
+Actual Results:
+no addresses are returned
+Expected Results:
+behave like .NET on Windows and return all local addresses except for loopback.
+How often does this happen? 
+Additional Information:
+Obviously, if I add my machine to the host file the call works as expected.