DNS mapping tool?
David Kramer
david at thekramers.net
Tue Jan 8 14:20:48 EST 2002
On Tue, 8 Jan 2002, Chuck Young wrote:
> Hi,
>
> Does anyone know of a tool that can be used to perform repeated reverse
> lookups on a network and then build a list of returned A records lined up
> with the IP's?
>
> I'm sure one is out there, but my searches have turned up nothing so far.
dig -x 209.73.162.71 |
perl -ne 'if(/(\S*)\s+\S+\s+IN A\s+([0-9.]+)/) {print("[$1\t$2]\n");}'
[NS1.ALTAVISTA.com. 209.73.164.76]
[NS2.ALTAVISTA.com. 209.73.164.7]
[NS3.ALTAVISTA.com. 209.73.176.204]
You might want to use sed instead of perl; I was just trying to bang out a
quick example.
-------------------------------------------------------------------
DDDD David Kramer http://thekramers.net
DK KD
DKK D "Before you criticize someone, you should walk a mile in
DK KD their shoes. That way, when you criticize them, you're a
DDDD mile away and you have their shoes." ??
More information about the Discuss
mailing list