Get domain controller address by netbios name

294 Views Asked by At

I am trying to authenticate a user to an Active Directory in node.js.
By using the npm library "active directory" or "ad" I can do this.
My problem is to get the fully qualified name of the domain controller from the NetBios Name (NT format).

What I get: domain\user (e.g. sales\tom)
What I need: sales.mycompany.com

Is there any library doing sort of a nslookup?

0

There are 0 best solutions below