Some systems don't have a domain name configured or they might have something in the form of domain.local; yet they are located within a domain.
Is there a way to get the domain these system belong to?
I already tried using the classic APIs:
NetWkstaGetInfo() DnsQueryConfig()
and many others...
Code is appreciated.