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

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 31 Aug 2004 10:25:29 -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 peter@novonyx.com.

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

--- shadow/64626	2004-08-31 10:14:01.000000000 -0400
+++ shadow/64626.tmp.28526	2004-08-31 10:25:29.000000000 -0400
@@ -47,6 +47,44 @@
 Are you absolutely positive that windows hasn't set the equivalent of
 /etc/resolv.conf + /etc/hosts to give the machine name, even though
 it's not manually added to any DNS server anywhere?  ie, what does
 "ping machinename" do from a command prompt?
 
 
+
+------- Additional Comments From peter@novonyx.com  2004-08-31 10:25 -------
+When you install Windows, you give the machine a name. It will use 
+that assigned name and automatically associate it with the local IP 
+addresses. Resolv.conf doesn't exist, it's 
+handled as properties on the IP driver. Here the content of my hosts 
+file and the results of pinging my machine name, which does also not 
+exist in any DNS server.
+
+[c:\windows\system32\drivers\etc]cat hosts
+# Copyright (c) 1993-1999 Microsoft Corp.
+#
+# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
+#
+# This file contains the mappings of IP addresses to host names. Each
+# entry should be kept on an individual line. The IP address should
+# be placed in the first column followed by the corresponding host 
+name.
+# The IP address and the host name should be separated by at least one
+# space.
+#
+# Additionally, comments (such as these) may be inserted on individual
+# lines or following the machine name denoted by a '#' symbol.
+#
+# For example:
+#
+#      102.54.94.97     rhino.acme.com          # source server
+#       38.25.63.10     x.acme.com              # x client host
+
+127.0.0.1       localhost
+
+[c:\windows\system32\drivers\etc]ping schnukipc
+
+Pinging schnukipc [164.99.192.140] with 32 bytes of data:
+
+Reply from 164.99.192.140: bytes=32 time<1ms TTL=128
+Reply from 164.99.192.140: bytes=32 time<1ms TTL=128
+