[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 496
  • Last Modified:

Gethostbyname API, any relation to netbios?

can someone tell me if this has dependencies on netbios?

Reason I ask, is because I want to disable netbios over tcp/ip on one of our machines. However, we run 3rd party medical software on this machine.

The manufacturer of the medical software says they use gethostbyname in their software. But I can't totally trust them, they always give inconsistent answers.

So does gethostbyname have any relation to netbios?

Thanks
0
dissolved
Asked:
dissolved
  • 2
3 Solutions
 
jhanceCommented:
The gethostbyname API is part of the WINSOCK interface and is not related to NETBIOS at all.  The dependencies in Windows name resolution flow the other way.  NetBIOS is dependent on TCP/IP, at least in Windows XP.

NetBIOS comes into play with the WIN32 API functions like GetComputerName() and GetComputerNameEx().
0
 
jhanceCommented:
Oh, I forgot to mention, gethostbyname() ends up being resolved by DNS or the local computer's HOSTS file.
0
 
craigwardmanCommented:
gethostbyname() will use NetBIOS only as a last resort, it will try to resolve computer names in the following order:

1. Check the local host name for a matching name.
2. Check the Hosts file for a matching name entry.
3. If a DNS server is configured, query it.
4. If no match is found, attempt NetBIOS name-resolution.

However, if you are running versions of windows earlier than 2000 then it can cause a few problems, as they wont be able to browse the network or access file shares etc.. (even with 2k it needs some configuring to register on local DNS servers)

It is easier to get around this if you are on a domain and using Active Directory..

see this link for more info:
http://www.microsoft.com/technet/itsolutions/network/deploy/depovg/tcpip2k.mspx
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now