What are you looking for?
        IP addresses for machines?
        Live IP Addresses?
        Physical Machines?
        DNS Information?
        DHCP Machines?
        Ethernet NIC Addresses?
        or some combination?

What network structure are you using?
        NetBeui?
        TCP/IP?
        IPX/SPX?
        Other?

All this information can be gathered with perl. Some easier than others. I have a script I wrote that pings IP's within a specified range, tells me whether the IP is in use or not, what Name is assigned the IP and whether the reverse lookup yields the same IP. (This script assumes ping is answered by machine being pinged.) With Linux or Unix machine and perl, the tools are there to find out just about anything you want about your network.

At 02:45 PM 12/4/2003, Bob Showalter wrote:
drieux wrote:
> On Dec 4, 2003, at 8:18 AM, Bob Showalter wrote:
> > Thomas Browner wrote:
> > > Is there away to find all of the hostname on a lan with
> use of perl?
> [..]
> > You can query DNS to get the hosts in a domain using nslookup, dig,
> > host, or similar. For example:
> >
> >    host -l mydomain.com
> >
> > If you want to talk to the resolver directly from Perl, you can use
> > the Net::DNS module.
>
> first forgive the brief prefatory rant:
>
>       <rant>
>       Bad BOB! Not Nice Bob! No Cookie!
>       </rant>

Oy vey!

>
> since what Bob has done with that 'host -l mydomain.com'
> is oblige us to go back and REALLY work out what in
> the DNS is a 'host' and what is the bloat in the
> DNS that is not actually a Host, not in the sense
> that most folks would think of.

$ host -ltA mydomain.com (:~)

[snip...]

> So a part of the unpleasantry, is what exactly
> is 'finding hosts on a Lan' really a question about...

No argument there.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>

Patrick J. Shoaf, IT Manager [EMAIL PROTECTED]

Model Cleaners, Uniforms, & Apparel
100 Third Street
Charleroi, PA 15022
<http://www.model-uniforms.com/>http://www.model-uniforms.com
Phone: 724-489-9553 ext. 105
 or    800-99 MODEL
Fax:   724-489-4386




-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to