Some systems do not have a website title set up or they may have something as domain.local yet they're situated inside a domain.

It is possible to method of getting the domain these system fit in with?

I already attempted while using classic APIs:

NetWkstaGetInfo() DnsQueryConfig()

and many more...

Code is appreciated.

Try GetComputerNameEx()

GetComputerNameEx(ComputerNameDnsDomain, pszBuffer, &dwLength)


Sorry just observed the home windows tag, see listing of network functions