[ldns-users] How to get CLASS from RDF...
Edward Fjellskål
edwardfjellskaal at gmail.com
Sat Mar 17 07:53:52 UTC 2012
Hi,
Im working on a sniffer that collects dns info passivly [1].
Im trying to record nxdomains atm, and from the logic of ldns code,
I would assume that there was a function like:
ldns_rdf_class
ldns_rdf_get_class(const ldns_rdf *rd)
{
assert(rd != NULL);
return rd->_class;
}
(which is not there)
Im recording only the answers from the server, so thats the payload
Im looking at.
I cant seem to find a good way of extracting this with the ldns library
:/ Any pointers would be nice :)
If not, I will just have to make my own class parser :) from the
ldns_struct_rdf/ldns_rdf _data.
Thanks :)
Edward
[1] https://github.com/gamelinux/passivedns
More information about the ldns-users
mailing list