long names not working on Windows 2000

Raimo Niskanen <>
Thu Jan 11 08:46:05 CET 2001


Unfortunately, I am not familiar to Windows 2000, but i can give you
some info about how it is supposed to work on Windows NT. Since Windows
2000 is not explicitly handled by Erlang, it regards the OS to be NT or
other Windows. You can try "os:type()" to see which.

Erlang reads the domain from the registry, where the TCP/IP protocol
stack should have put the information. You can try regedit (on NT) and
find the key:

\HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters\Domain
which should contain the domain name. On other Windows it is supposed to
be:
	\HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Vxd\Mstcp\Domain

For this key to be present, the TCP/IP protocol stack must be correctly
configured. Find the icon "Network Neighbourhood", right click ->
"Properties" -> "Protocols" -> "TCP/IP" -> "Properties" -> "DNS" check
the box "Domain". Also check the level in parallel to "DNS" called "IP
Address" to be fixed address.

I hope this can put you on the track of the problem.

/ Raimo Niskanen, Ericsson UAB, Erlang/OTP


David Gould wrote:
> 
> On Wed, Jan 10, 2001 at 09:04:00PM -0500, Vance Shipley wrote:
> > > Try inet_db:gethostname() and inet_db:res_option(domain) in a shell
> > > (this is what net_kernel uses to construct the host part of a long node
> > name).
> >
> > Eshell V5.0.1  (abort with ^G)
> >
> > ()1> inet_db:gethostname().
> > "desk"
> 
> This means that the current host has the name "desk".
> 
> 
> > ()2> inet_db:res_option(domain).
> > []
> 
> This means that the current host does not have a domain.
> 
> 
> > C:\> ping mail
> >  Pinging mail.motivity.ca [192.197.189.1] with 32 bytes of data:
> 
> This means that "mail" is a host named mail in the domain "motivity.ca".
> ping can find it because your DNS or hosts file has an alias for
> mail to mail.motivity.ca, or that your resolver is configured to search
> domain "motivity.ca" when queried with just a host name.
> 
> However host "mail" has nothing to do with host "desk".
> 
> What host "mail" needs is to be configured to be part of some domain.
> 
> -dg
> 
> --
> David Gould                                                 
> SuSE, Inc.,  580 2cd St. #210,  Oakland, CA 94607          510.628.3380
> why would you want to own /dev/null? "ooo! ooo! look! i stole nothing!
> i'm the thief of nihilism! i'm the new god of zen monks."



More information about the erlang-questions mailing list