My question is simple as it sounds. Is there any tool to know the total amount of computers that belong to a certain domain in a network? I scanned the network using nmap (Zenmap) and then look at the FQDN to check the domain name but the result wasn't accurate because by the time I did it some computers were offline (down). I'm talking about almost 1000 computers.
I need any tool capable of scan the network actively and saving the hosts in a database. So I used OSSIM from AlienVault during a week and exported the result as a .csv file (containing all the computers). So far I'm good but there is a catch, when a computer joins a domain, the Domain Controller keeps the computer's name associated to an IP, even if the computer "leaves" the network. So when OSSIM (or nmap) asks for the name of the 192.X.Y.Z IP it gets the name of the prior computer. This leads to think that the new machine (with the prior machine's IP address) is in the domain and it's not. Please correct me if I'm wrong. So I would be counting that machine as a domain machine and getting the wrong total amount of computers joined in the domain.
So, is there a more technical (not parsing FQDN) way to "ask" a machine: Are you in the "domain.net" domain? I just want to "hear" is a Yes or No (Coming from the machine).