Re: How to use dig with an ip list

2008-08-19 Thread Wayne Sierke
On Mon, 2008-08-18 at 22:52 -0500, Paul Schmehl wrote: --On August 18, 2008 10:13:54 PM -0500 Jeffrey Goldberg [EMAIL PROTECTED] wrote: On Aug 18, 2008, at 9:03 PM, 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

Re: How to use dig with an ip list

2008-08-19 Thread Jeffrey Goldberg
On Aug 18, 2008, at 10:25 PM, Fraser Tweedale wrote: On Mon, Aug 18, 2008 at 10:18:07PM -0500, Jeffrey Goldberg wrote: You'll want to change line four to echo $LINE `dig +short -x $LINE` for a cleaner output. The original works fine for me in ash. Definitely nothing wrong with yours

How to use dig with an ip list

2008-08-18 Thread Paul Schmehl
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 ([EMAIL PROTECTED]) Senior Information

Re: How to use dig with an ip list

2008-08-18 Thread Paul Schmehl
--On August 19, 2008 12:44:05 PM +1000 Fraser Tweedale [EMAIL PROTECTED] wrote: 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;

Re: How to use dig with an ip list

2008-08-18 Thread Fraser Tweedale
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

Re: How to use dig with an ip list

2008-08-18 Thread Fraser Tweedale
On Mon, Aug 18, 2008 at 10:05:18PM -0500, Paul Schmehl wrote: --On August 19, 2008 12:44:05 PM +1000 Fraser Tweedale [EMAIL PROTECTED] wrote: 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

Re: How to use dig with an ip list

2008-08-18 Thread Fraser Tweedale
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

Re: How to use dig with an ip list

2008-08-18 Thread Jeffrey Goldberg
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.

Re: How to use dig with an ip list

2008-08-18 Thread Jeffrey Goldberg
On Aug 18, 2008, at 9:03 PM, 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?

Re: How to use dig with an ip list

2008-08-18 Thread RW
On Mon, 18 Aug 2008 21:03:36 -0500 Paul Schmehl [EMAIL PROTECTED] 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

Re: How to use dig with an ip list

2008-08-18 Thread Paul Schmehl
--On August 18, 2008 10:13:54 PM -0500 Jeffrey Goldberg [EMAIL PROTECTED] wrote: On Aug 18, 2008, at 9:03 PM, 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