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>

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.

At one end of the problem are all the 'jet direct'
printer server devices that Hopped OUT at me, and
while I love them, and they are cute, and they
simplify the process of getting network printers
up and available, do we REALLY want to include,
or exclude them, from our notion of 'hostneff'.

Then there is that stack of stuff that comes
back as SRV entries, I mean do you really consider

_ldap._tcp.mydomain.com

to be a 'real host'? And Oh my GOD, there's
the different 'terminal servers' that we use
for headless severs to connect to, are they
really 'hosts'?

Then there are all of those DHCP entries, whether
or not the license is active...

At which point, of course, we could get bogged
down in the usual problems of multi-homed hosts
that have more than one NIC in them...

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

ciao
drieux

---


-- 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