W3C home > Mailing lists > Public > www-lib@w3.org > July to September 1996

HTGetDomainName on NT

From: John W. James <jjames@firstfloor.COM>
Date: Mon, 5 Aug 96 16:23:15 PDT
Message-Id: <9608052323.AA21910@homeplate.firstfloor.COM>
To: www-lib@w3.org
On NT 3.5X we're seeing a problem we're not seeing on Win95. On Win95, 
HTGetDomainName calls HTGetHostName which calls gethostname(), which in 
turn returns a fully qualified hostname (e.g. machine.domain.com), but on NT 
3.5X it only gets back the machine name itself. Since Winsock doesn't support 
a getdomainname(), this leaves us in bad shape trying to back our way into 
trying to contact another web server inside the user's domain referred to in 
the URL only by the machine name itself without the domain.

Has anyone worked around this in wwwlib?


John James                    Email:  jjames@firstfloor.COM
First Floor, Inc.             Web:    http://www.firstfloor.COM
444 Castro Street, Suite 200  Tel:    (415) 254-5101
Mountain View. CA 94041       Fax:    (415) 968-1193
Received on Monday, 5 August 1996 19:23:24 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:47 UTC