Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I reverse lookup a group of IPs in a single request? 1

Status
Not open for further replies.

mlibeson

Programmer
Mar 6, 2002
311
US
How do I reverse lookup a group of IPs in a single request?

I am trying to improve effeciency in a PERL script I am writing. I am currently doing a reverse lookup of one IP at a time. This as you can imagine takes a considerable amount of time when you have to lookup 3000 IPs at a time and sometimes more on a regular basis.

I am running on a WINNT 4.0 system, but I need a generic solution that will also work on unix platforms.

Any ideas would be appreciated.

Thank you.
 
I wish I could help, I would only be able to suggest creating an array and looping through it on at a time probably like you are doing. Therte is however a utility in the w2k resource kit for querying dns zones both forward and reverse but as far as I know it does not work with NT.

dnscmd.exe
 
I have moved to win2000 server. I will look for the utility. Do you know the name of it and can it be used from the command line? I want to use perl to process the IPS and would like a more efficient way then to do them one by one.

Thank you for pointing me to the Utils Stiddy I will give it a try.



Michael Libeson
 
it is a command line utility and it is called dnscmd.exe
 
Thank you Stiddy, I will look into it.


Michael Libeson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top