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?
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
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 r
Thomas Browner wrote:
> Is there away to find all of the hostname on a lan with use of perl?
Portable to most systems:
use Sys::Hostname;
my $host = hostname;
or (on Windows systems):
my $host = $ENV{COMPUTERNAME};
or (on *nix systems):
my $host = $ENV{HOSTNAME};
--
Helgi Briem Tæknideild
Thomas Browner wrote:
> Is there away to find all of the hostname on a lan with use of perl?
Getting a list of host names involves querying some kind of nameserver or
directory service. What kind of LAN? What kind of hosts?
You can query DNS to get the hosts in a domain using nslookup, dig, host,
Hi.
I'm in the employ of Casey West, a list admin, to assist you with your
question. I've taken the liberty to search Google using the Subject line
you provided in your email to the list. I hope one of the links below
will be of service to you.
Sadly Google hasn't given us a nice, legal API for s