|Syntactic Confectionery Delight|
How can I get which Windows domain an IP belongs to?by Anonymous Monk
|on Oct 13, 2003 at 20:10 UTC||Need Help??|
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 192.168.1.1
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.
192.168.1.3 domain 55