TIP: Click on subject to list as thread! ANSI
echo: os2rexx
to: All
from: Peter Knapper
date: 2002-12-23 20:41:34
subject: Walking a DNS...

Hi Folks,

I have a need to "walk" a DNS Domain, searching for specific
record types within the DNS. At first this sounded reasonably easy, start
at the Domain root, grab the Zone file, extract all NS records for each
child Domain, then in turn, grab those domain files looking for what I
need. Repeat until the entire Domain is searched.

The "problem" I have is that I can't find a way to select records
by TYPE without resorting to external (IE non-REXX) utilities. In fact
SockGetHostByName() (or any other related Sockets call) does not appear to
allow for accessing individual record types other than A records. How about
locating AAAA or MX records?

Have I missed something here folks?

Cheers........................pk.


--- Maximus/2 3.01
* Origin: Another Good Point About OS/2 (3:772/1.10)
SEEN-BY: 633/267 270
@PATH: 772/1 140/1 106/2000 1 379/1 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.