From owner-freebsd-questions@FreeBSD.ORG Tue Aug 19 03:25:57 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 227811065691 for ; Tue, 19 Aug 2008 03:25:57 +0000 (UTC) (envelope-from jeffrey@goldmark.org) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id F35558FC24 for ; Tue, 19 Aug 2008 03:25:56 +0000 (UTC) (envelope-from jeffrey@goldmark.org) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 3448915A183; Mon, 18 Aug 2008 23:18:09 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Mon, 18 Aug 2008 23:18:09 -0400 X-Sasl-enc: Ue9iytA06x5KbktW6W75T1Kfcjf8gulNqNV1VFiyxTag 1219115888 Received: from hagrid.ewd.goldmark.org (n114.ewd.goldmark.org [72.64.118.114]) by mail.messagingengine.com (Postfix) with ESMTPSA id 9FA3F2D832; Mon, 18 Aug 2008 23:18:08 -0400 (EDT) Message-Id: <3D5BA85E-7C9F-4ED1-9442-A6A7EA8C606D@goldmark.org> From: Jeffrey Goldberg To: Fraser Tweedale In-Reply-To: <20080819031351.GD4326@bacardi.frase.id.au> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v928.1) Date: Mon, 18 Aug 2008 22:18:07 -0500 References: <20080819024404.GB4326@bacardi.frase.id.au> <8B61752D0585DE4B43DE2005@Macintosh.local> <20080819031351.GD4326@bacardi.frase.id.au> X-Mailer: Apple Mail (2.928.1) Cc: Paul Schmehl , FreeBSD Questions Subject: Re: How to use dig with an ip list X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Aug 2008 03:25:57 -0000 On Aug 18, 2008, at 10:13 PM, Fraser Tweedale wrote: > ================================== > #!/bin/sh > while read LINE > do > echo $LINE `dig +short -x $LINE` > done > =================================== You'll want to change line four to echo "$LINE " `dig +short -x $LINE` for a cleaner output. -j -- Jeffrey Goldberg http://www.goldmark.org/jeff/