Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #9642

Re: how to get a list of all the hosts on the intranet around my workstation?

References <a872bea7-3920-44c4-8df2-e75cad47c5f2@p12g2000pre.googlegroups.com> <CAPTjJmrHSHe5m0gesySPiu38zDVac06EJ0d+u+Nj5Grj1qMQTw@mail.gmail.com> <ivsjna$gd5$2@dough.gmane.org>
Date 2011-07-17 04:19 +1000
Subject Re: how to get a list of all the hosts on the intranet around my workstation?
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1123.1310840400.1164.python-list@python.org> (permalink)

Show all headers | View raw


On Sun, Jul 17, 2011 at 4:04 AM, Emile van Sebille <emile@fenx.com> wrote:
> On 7/16/2011 9:52 AM Chris Angelico said...
>>
>> I'd say there's several imperfect options, and no perfect ones.
>>
>> 1) DHCP, which hosts may or may not be using.
>> 2) DNS - look up a list of the hosts within a (sub)domain.
>> 3) Send out a broadcast ping and hope they all respond.
>
> Or try nmap and parse it's results.

Or that, which has the same risk as #3 - basically it means doing some
network traffic to find what systems are around. It's still imperfect,
because it's likely that a down server will simply not be in the list
- someone could go through all the hosts on the list, ping them all,
and think that everything's fine.

But yes, nmap is more reliable than a broadcast ping, for what it's worth.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

how to get a list of all the hosts on the intranet around my workstation? Phlip <phlip2005@gmail.com> - 2011-07-16 09:31 -0700
  Re: how to get a list of all the hosts on the intranet around my workstation? Chris Angelico <rosuav@gmail.com> - 2011-07-17 02:52 +1000
  Re: how to get a list of all the hosts on the intranet around my workstation? Emile van Sebille <emile@fenx.com> - 2011-07-16 11:04 -0700
  Re: how to get a list of all the hosts on the intranet around my workstation? Thomas Jollans <t@jollybox.de> - 2011-07-16 20:15 +0200
  Re: how to get a list of all the hosts on the intranet around my workstation? Chris Angelico <rosuav@gmail.com> - 2011-07-17 04:19 +1000
  Re: how to get a list of all the hosts on the intranet around my workstation? Chris Angelico <rosuav@gmail.com> - 2011-07-17 04:27 +1000
  Re: how to get a list of all the hosts on the intranet around my workstation? Christian Heimes <lists@cheimes.de> - 2011-07-16 21:59 +0200
  Re: how to get a list of all the hosts on the intranet around my workstation? Michael Hrivnak <mhrivnak@hrivnak.org> - 2011-07-16 16:01 -0400

csiph-web