Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:


Does it exist some module to get the Windows domain a Windows host belongs to?.

From a Windows computer I can do:
nbtstat -A

And this will give me the Windows domain and other things that I dont want.

But I want to loop througt several hundreds IP-addresses and match these to the Windows domains the belong to and write the result to a file.

I have a txt file with several IP-addresses like

The result file should be like this. domain35 domain50 domain 55

//Anders Andersson