How to use dig with an ip list

Fraser Tweedale frase at
Tue Aug 19 03:09:05 UTC 2008

On Mon, Aug 18, 2008 at 09:03:36PM -0500, Paul Schmehl wrote:
> I know I'm missing the obvious.  I want to use an IP list to generate an 
> ip+hostname list.  IOW, I want to go from this:
> x.x.x.x
> y.y.y.y
> to this;
> x.x.x.x foo.domain.tld
> y.y..y.y bar.domain.tld
> What's the best/easiest way to do this?
> Paul Schmehl (pauls at
> Senior Information Security Analyst
> The University of Texas at Dallas

dig(1) - see section `MULTIPLE QUERIES'
note the -x flag to instruct dig to perform a reverse lookup

see also host(1)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list