How to use dig with an ip list

Fraser Tweedale frase at frase.id.au
Tue Aug 19 03:25:43 UTC 2008


On Mon, Aug 18, 2008 at 10:18:07PM -0500, Jeffrey Goldberg wrote:
> 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/
> 

The original works fine for me in ash.  Definitely nothing wrong with yours
though.  What have I overlooked?

frase
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080819/0925ea3f/attachment.pgp


More information about the freebsd-questions mailing list