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?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'hosts': 0.09; 'ping': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'respond.': 0.09; 'second.': 0.09; 'am,': 0.13; 'wrote:': 0.15; 'dhcp,': 0.16; 'received:173.11': 0.16; 'subject: \n ': 0.16; 'subject:list': 0.16; 'header:In-Reply-To:1': 0.22; 'trying': 0.23; 'ones.': 0.23; 'parse': 0.23; 'do,': 0.28; 'server': 0.29; 'shell': 0.29; 'sun,': 0.30; 'subject:?': 0.31; 'chris': 0.32; 'list': 0.32; 'to:addr :python-list': 0.34; 'header:X-Complaints-To:1': 0.34; 'header :User-Agent:1': 0.34; '17,': 0.35; 'dns': 0.35; 'file': 0.36; 'several': 0.37; 'could': 0.37; 'received:org': 0.38; 'subject:: ': 0.38; 'problem.': 0.38; 'header:Mime-Version:1': 0.39; 'either': 0.39; "there's": 0.39; 'to:addr:python.org': 0.39; "i'd": 0.40; 'hope': 0.60; 'full': 0.63; 'perfect': 0.63
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
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 Sat, 16 Jul 2011 11:04:14 -0700
References <a872bea7-3920-44c4-8df2-e75cad47c5f2@p12g2000pre.googlegroups.com> <CAPTjJmrHSHe5m0gesySPiu38zDVac06EJ0d+u+Nj5Grj1qMQTw@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 173-11-108-137-sfba.hfc.comcastbusiness.net
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11
In-Reply-To <CAPTjJmrHSHe5m0gesySPiu38zDVac06EJ0d+u+Nj5Grj1qMQTw@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1119.1310839350.1164.python-list@python.org> (permalink)
Lines 27
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1310839350 news.xs4all.nl 23876 [2001:888:2000:d::a6]:48742
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:9638

Show key headers only | 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