From owner-freebsd-questions Tue Jun 26 13:27:12 2001 Delivered-To: freebsd-questions@freebsd.org Received: from trinity.magpage.com (trinity.magpage.com [216.155.0.8]) by hub.freebsd.org (Postfix) with ESMTP id 3B75C37B405 for ; Tue, 26 Jun 2001 13:27:10 -0700 (PDT) (envelope-from dfrazier@magpage.com) Received: from magpage.com (dfrazier@poomba.magpage.com [216.155.24.136]) by trinity.magpage.com (8.11.3/8.11.3) with ESMTP id f5QKQJ796114; Tue, 26 Jun 2001 16:26:34 -0400 (EDT) Message-ID: <3B38EFE1.D7429B57@magpage.com> Date: Tue, 26 Jun 2001 16:26:09 -0400 From: Daniel Frazier X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Peter Brezny , freebsd-questions@FreeBSD.ORG Subject: Re: dns tool for reverse lookup of network range needed References: <3B38EED3.F5E33696@magpage.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-RRT-Status: UNKNOWN Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Daniel Frazier wrote: > > Peter Brezny wrote: > > > > Is there a too for freebsd that could help with checking the reverse lookup > > of an entire subdomain? > > > > I looked around in the man page for dig, and saw the -f [file] option, but > > i'd still have to setup a file with each ip in it... > > > > how about this... > > $ x=0; while [ $x -lt 255 ]; do echo $x; host 216.155.24.$x; x=`echo "$x + 1" | bc`; done > > this'll do a whole class c. modify the original value of x and the number > in the test command to narrow the range of ips checked. > eh, you can take out the "echo $x" to make the output a bit more readable. $ x=0; while [ $x -lt 255 ]; do host 216.155.24.$x; x=`echo "$x + 1" | bc`; done -- ---------------------------------------------------------------------- Daniel Frazier Tel: 302-239-5900 Ext. 231 Systems Administrator Fax: 302-239-3909 MAGPAGE, We Power the Internet WWW: http://www.magpage.com/ "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin, Historical Review of Pennsylvania, 1759. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message