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?

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!newsfeed.kamp.net!newsfeed.kamp.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.026
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'hosts': 0.09; 'ping': 0.09; 'respond.': 0.09; 'am,': 0.13; 'wrote:': 0.15; 'dhcp,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'worth.': 0.16; 'subject:list': 0.16; 'received:209.85.210.174': 0.19; 'received:mail-iy0-f174.google.com': 0.19; 'header:In-Reply- To:1': 0.22; 'ones.': 0.23; 'parse': 0.23; 'van': 0.27; 'all,': 0.28; 'message-id:@mail.gmail.com': 0.28; 'server': 0.29; 'around.': 0.29; 'fine.': 0.29; 'sun,': 0.30; 'subject:?': 0.31; 'chris': 0.32; 'list': 0.32; 'to:addr:python-list': 0.34; 'someone': 0.34; 'that,': 0.35; '17,': 0.35; 'dns': 0.35; 'some': 0.37; 'doing': 0.37; 'but': 0.37; 'several': 0.37; 'could': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'think': 0.38; 'list,': 0.39; "there's": 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.40; "i'd": 0.40; 'hope': 0.60; 'perfect': 0.63; 'traffic': 0.70; 'risk': 0.72; "everything's": 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=rmYSsdsuh/oBKybXyGMOisDwu7cPU+KvJP5mgMn9iXQ=; b=BUAhmgsokW6var2TyJQ6+NLNxs0NeT4bsVvC6VnG4hu3KyjBI09LWXeSDp7MgdD+Zi CNqLYTbOYuaEcckcR8n3goOQQ/pP9M52dIkkp05CoCizN2SdsHtAGff9FHNqTwtf+I+a RXflT57lwjxNJ7k4hSYuG96GYC6H31n5W6pfU=
MIME-Version 1.0
In-Reply-To <ivsjna$gd5$2@dough.gmane.org>
References <a872bea7-3920-44c4-8df2-e75cad47c5f2@p12g2000pre.googlegroups.com> <CAPTjJmrHSHe5m0gesySPiu38zDVac06EJ0d+u+Nj5Grj1qMQTw@mail.gmail.com> <ivsjna$gd5$2@dough.gmane.org>
Date Sun, 17 Jul 2011 04:19:57 +1000
Subject Re: how to get a list of all the hosts on the intranet around my workstation?
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
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.1123.1310840400.1164.python-list@python.org> (permalink)
Lines 20
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1310840400 news.xs4all.nl 23844 [2001:888:2000:d::a6]:43211
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:9642

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