NAME
Net::WDNS::RD - Perl interface for libwdns rdata
SYNOPSIS
use Net::WDNS;
...
my $msg = parse_message($pkt); for my $rr ($msg->answer) { for my $rd ($rr->rdata) { print $rd->as_str, "\n"; } }
DESCRIPTION
Net::WDNS::RD is an object interface to the rdata portions of dns messages.
CONSTRUCTOR
- new($rdata, $rrtype, $rrclass)
-
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.
METHODS
- rrclass()
-
Return the string version of the rrclass of this rdata.
- rrtype()
-
Return the string version of the rrtype of this rdata.
- rrclass_num()
-
Return the numeric rrclass of this rdata.
- rrtype_num()
-
Return the numeric rrtype of this rdata.
- rdata_raw()
-
Return the raw (wire-formatted) rdata.
- as_str()
-
Return a human-readable string representing the rdata. Objects are also overloaded to render as strings when double-quoted.
SEE ALSO
Net::WDNS, Net::WDNS::Msg, Net::WDNS::RR, Net::Nmsg
AUTHOR
Matthew Sisk, <sisk@cert.org>
COPYRIGHT AND LICENSE
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.