Re: DNS mapping

From: pand0ra (pand0ra.usa@gmail.com)
Date: Thu Feb 22 2007 - 11:12:34 EST


Here is a .bat file you can try. You need a file called hostnames.txt that contains a list of hosts you want to test. Feel free to replace the ping command with whatever command you want to use to do your lookups, it's just there as an example.

@echo off

:START
CLS
FOR /F "Tokens=1" %%a in (hostnames.txt) Do (
    IF "%%a" == "END" GOTO END

REM Add DATE and TIME stamp
date /t>%%a.dns.txt
time /t>>%%a.dns.txt

ECHO Checking %%a now.

ping -a -n 1 >>%%a.dns.txt

)

:END

Here is a reference for batch files that is pretty good.
http://labmice.techtarget.com/articles/batchcmds.htm

On 18 Feb 2007 02:38:33 -0000, oivind.lund@gmail.com <oivind.lund@gmail.com> wrote:
> I was wondering if there is an easy way to write a script to use for reverse DNS mapping.
> For instance, inputting the address test.com to the script and then having the script reverse mapping the address and testing other common DNS names like mail.test.com , web.test.com etc ?
> Or maybe there is a tool available which allows me to do this and make my own list of common DNS names ?
>
> ------------------------------------------------------------------------
> This List Sponsored by: Cenzic
>
> Need to secure your web apps?
> Cenzic Hailstorm finds vulnerabilities fast.
> Click the link to buy it, try it or download Hailstorm for FREE.
>
> http://www.cenzic.com/products_services/download_hailstorm.php?camp=701600000008bOW
> ------------------------------------------------------------------------
>
>

------------------------------------------------------------------------
This List Sponsored by: Cenzic

Need to secure your web apps?
Cenzic Hailstorm finds vulnerabilities fast.
Click the link to buy it, try it or download Hailstorm for FREE.

http://www.cenzic.com/products_services/download_hailstorm.php?camp=701600000008bOW
------------------------------------------------------------------------



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:57:36 EDT