Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: How can I get which Windows domain an IP belongs to?

by inman (Curate)
on Oct 14, 2003 at 13:04 UTC ( #299092=note: print w/ replies, xml ) Need Help??


in reply to How can I get which Windows domain an IP belongs to?

I tried a variant of both the run nbtstat.exe and use Net::NBName methods but I used the regex /(\S+)\s*?<00>\s*?GROUP/i to capture the domain as $1. Appeared to do the trick.

This page looked like a useful reference for the various entries in the table.

inman


Comment on Re: How can I get which Windows domain an IP belongs to?
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://299092]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2015-07-06 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (72 votes), past polls