Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Aug 2008 22:18:07 -0500
From:      Jeffrey Goldberg <jeffrey@goldmark.org>
To:        Fraser Tweedale <frase@frase.id.au>
Cc:        Paul Schmehl <pauls@utdallas.edu>, FreeBSD Questions <questions@freebsd.org>
Subject:   Re: How to use dig with an ip list
Message-ID:  <3D5BA85E-7C9F-4ED1-9442-A6A7EA8C606D@goldmark.org>
In-Reply-To: <20080819031351.GD4326@bacardi.frase.id.au>
References:  <F00086DB609A849EAB40A058@Macintosh.local> <20080819024404.GB4326@bacardi.frase.id.au> <8B61752D0585DE4B43DE2005@Macintosh.local> <20080819031351.GD4326@bacardi.frase.id.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D5BA85E-7C9F-4ED1-9442-A6A7EA8C606D>