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


Groups > comp.lang.python > #9638

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

From Emile van Sebille <emile@fenx.com>
Subject Re: how to get a list of all the hosts on the intranet around my workstation?
Date 2011-07-16 11:04 -0700
References <a872bea7-3920-44c4-8df2-e75cad47c5f2@p12g2000pre.googlegroups.com> <CAPTjJmrHSHe5m0gesySPiu38zDVac06EJ0d+u+Nj5Grj1qMQTw@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1119.1310839350.1164.python-list@python.org> (permalink)

Show all headers | View raw


On 7/16/2011 9:52 AM Chris Angelico said...
> On Sun, Jul 17, 2011 at 2:31 AM, Phlip<phlip2005@gmail.com>  wrote:
>> pydhcplib? Shell to a DHCP utility? Ping every server in a range
>> around my own?
>>
>
> 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.

Emile


>
> If you have full control, I would recommend the second. You could even
> cheat by reading a file from /etc/bind or similar.
>
> Depending on what you're trying to do, this could either be wholly
> impractical, or an easy solution to an otherwise-difficult problem.
>
> 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