How to use dig with an ip list
Jeffrey Goldberg
jeffrey at goldmark.org
Tue Aug 19 03:25:57 UTC 2008
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/
More information about the freebsd-questions
mailing list