RE: Finding Hosts On Lan - Re: hostname

2003-12-05 Thread Patrick Shoaf
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?

RE: Finding Hosts On Lan - Re: hostname

2003-12-04 Thread Bob Showalter
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

Finding Hosts On Lan - Re: hostname

2003-12-04 Thread drieux
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

Re: hostname

2003-12-04 Thread Helgi Briem
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

RE: hostname

2003-12-04 Thread Bob Showalter
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,

[First Response Service] Re: hostname

2003-12-04 Thread Casey West
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