Net::WDNS::RD - Perl interface for libwdns rdata
use Net::WDNS;
...
my $msg = parse_message($pkt);
for my $rr ($msg->answer) {
for my $rd ($rr->rdata) {
print $rd->as_str, "\n";
}
}
Net::WDNS::RD is an object interface to the rdata portions of dns messages.
Creates a new Net::WDNS::RD object from raw rdata, numeric rrtype, and numeric rrclass. This should never have to be called directly as rdata objects are provided the Net::WDNS::RR objects.
Return the string version of the rrclass of this rdata.
Return the string version of the rrtype of this rdata.
Return the numeric rrclass of this rdata.
Return the numeric rrtype of this rdata.
Return the raw (wire-formatted) rdata.
Return a human-readable string representing the rdata. Objects are also overloaded to render as strings when double-quoted.
Net::WDNS, Net::WDNS::Msg, Net::WDNS::RR, Net::Nmsg
Matthew Sisk, <sisk@cert.org>
Copyright (C) 2014 by Carnegie Mellon University
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, as published by the Free Software Foundation, under the terms pursuant to Version 2, June 1991.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.