Nmap Development mailing list archives

Re: [RFC] [NSE] DNS library


From: "Philip Pickering" <pgpickering () gmail com>
Date: Thu, 21 Aug 2008 12:14:14 +0200

Hi!

An updated version of the NSE DNS library is now in SVN.
It uses the updated version of the binlib, also in SVN.


The most significant change happened with the query function:

dns.query(dname, options)

where options is a table. The old arguments are still there
(dtype, host, port, tries) and some new have been added.


For example if you want to omit the answer fetching mechanim,
just set retPkt to true and you'll receive only the decoded packet
(as a table):
dns.query(dname, {retPkt = true})


If you want more than just the first answer, use the retAll option
and you'll get a table.
dns.query(dname, {retAll = true})


Another option is norecurse to set the "recurse desired" flag
to false (and to avoid a recursive query)


About the error messages: I thought, using numbers as error
codes would be better if you want to react on certain error events.
For output maybe a second table containing error messages would
be better than simply changing the error codes to strings.

I didn't apply the patch for IPv6 because jah's version of ipOps isn't
checked in (yet).

cheers,
Philip

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: