Michael Vincent > Net-Frame-Layer-DNS > Net::Frame::Layer::DNS::RR::AAAA

Download:
Net-Frame-Layer-DNS-1.04.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Net::Frame::Layer::DNS::RR::AAAA - DNS Resource Record AAAA rdata type

SYNOPSIS ^

   use Net::Frame::Layer::DNS::RR::AAAA;

   my $rdata = Net::Frame::Layer::DNS::RR::AAAA->new(
      address => '::1',
   );
   $rdata->pack;

   print 'RAW: '.$rdata->dump."\n";

   # Create RR with rdata
   use Net::Frame::Layer::DNS::RR qw(:consts);
   
   my $layer = Net::Frame::Layer::DNS::RR->new(
      type  => NF_DNS_TYPE_AAAA
      rdata => $rdata->pack
   );
   $layer->pack;

DESCRIPTION ^

This modules implements the encoding and decoding of the DNS Resource Record AAAA rdata type object. Users need only use this for encoding. Net::Frame::Layer::DNS::RR calls this as needed to assist in rdata decoding.

See also Net::Frame::Layer for other attributes and methods.

ATTRIBUTES ^

address

IPv6 address.

The following are inherited attributes. See Net::Frame::Layer for more information.

raw
payload
nextLayer

METHODS ^

new
new (hash)

Object constructor. You can pass attributes that will overwrite default ones. See SYNOPSIS for default values.

The following are inherited methods. Some of them may be overriden in this layer, and some others may not be meaningful in this layer. See Net::Frame::Layer for more information.

layer
computeLengths
computeChecksums
pack
unpack
encapsulate
getLength
getPayloadLength
print
dump

CONSTANTS ^

No constants here.

SEE ALSO ^

Net::Frame::Layer::DNS, Net::Frame::Layer::DNS::RR, Net::Frame::Layer

AUTHOR ^

Michael Vincent

COPYRIGHT AND LICENSE ^

Copyright (c) 2012, Michael Vincent

You may distribute this module under the terms of the Artistic license. See LICENSE.Artistic file in the source distribution archive.

syntax highlighting: