Re: NSLookup Utility

This is a discussion on Re: NSLookup Utility within the Bind Users forums, part of the DNS and Related Forums category; Barry Margolin wrote: > In article <bioep1$1h86$1@sf1.isc.org>, > Jim Easley <jeasley18@comcast....


Go Back   Usenet Forums > DNS and Related Forums > Bind Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-29-2003
Kevin Darcy
 
Posts: n/a
Default Re: NSLookup Utility

Barry Margolin wrote:

> In article <bioep1$1h86$1@sf1.isc.org>,
> Jim Easley <jeasley18@comcast.net> wrote:
> >Hey,
> >
> >I have an off the wall question. Is there a utility out there that
> >will allow me to import a .csv of IP addresses, then perform an
> >nslookup of each one?
> >
> >I have been assigned the task of doing this for 10,770 IP addresses
> >for a client.

>
> It seems like a trivial shell script:
>
> tr , '\n' file.csv | while read address
> do
> nslookup $address
> done


It might not be as trivial as it may seem. I seem to recall from the
_Mastering_Regular_Expressions_ O'Reilly book that there are a maddening variety
of CSV variants, particularly with regard to how they handle embedded commas
within quoted text, etc. (this was, of course, in the context of trying to extract
data from the CSV output using regular expressions).

As long as the eccentricities of the particular flavor of CSV are know, however,
it should be a fairly trivial task...


- Kevin



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:11 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0