RE: emulation of gethostbyaddr to resolve to NetBIOS name



Hi Paul,
Thank you for your clarification.

Actually gethostbyaddr() is not the culprit. As you can see from the KB
article, it is caused by the fact that some services, other than the
Workstation, that Register as Unique with the [00h] entry, will show up in
the NETBIOS Node Status Query response as well as the Machine Name and
unfortunately gethostbyaddr() cannot identify them and so it returns an
incorrect result.

As a possible workaround you had been aware of, I agree that you check the
name and remove "IS~" if it contains the characters.

Also I notice that the KB article only applies to Windows 2000 and earlier
Windows NT systems, could you please let me know if you also encountered
this issue on Windows XP/2003 systems? Anyway since NetBIOS is a very old
technology and the later Windows OS from Vista does not support it very
well. If possible, I recommend that you use DNS instead of NETBIOS.

Please feel free to let me know if you have any other questions or
concerns. Have a nice day!

Best regards,
Charles Wang
Microsoft Online Community Support
=========================================================
Delighting our customers is our #1 priority. We welcome your
comments and suggestions about how we can improve the
support we provide to you. Please feel free to let my manager
know what you think of the level of service provided. You can
send feedback directly to my manager at: msdnmg@xxxxxxxxxxxxxx
=========================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
=========================================================







.



Relevant Pages

  • Re: older games dont work
    ... the support of my work have it and will burn a CD to me. ... and any other tips to make this game works will be great. ... Windows 95 including but not limited to: ... to map a pedal as a control ...
    (microsoft.public.windowsxp.games)
  • Network Drives not connecting at startup
    ... Professional to Windows XP Professional. ... and marks these drives as "unavailable" ... Microsoft Support agent. ... Welcome to Microsoft Windows XP Chat Support ...
    (microsoft.public.windowsxp.network_web)
  • Re: window xp service pack 3
    ... ("support ceases except for critical updates to fix security ... Windows XP Professional: ... Again, Shenan, not locally. ... I never said I am being forced to upgrade. ...
    (microsoft.public.windowsxp.general)
  • Re: Using Media Center with an external soundcard does not work
    ... Windows XP Media Center compatiblity alert. ... Support for digital and high-definition local TV ... transit USB audio card that I am using right now with Windows Media ...
    (microsoft.public.windows.mediacenter)
  • Re: Using Media Center with an external soundcard does not work
    ... Windows XP Media Center compatiblity alert. ... Support for digital and high-definition local TV ... transit USB audio card that I am using right now with Windows ...
    (microsoft.public.windows.mediacenter)