Net::Frame::Layer::DNS::RR::SRV - DNS Resource Record SRV rdata type
use Net::Frame::Layer::DNS::RR::SRV; my $rdata = Net::Frame::Layer::DNS::RR::SRV->new( priority => 1, weight => 0, port => 53, target => 'localhost', ); $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_SRV rdata => $rdata->pack ); $layer->pack;
This modules implements the encoding and decoding of the DNS Resource Record SRV rdata type object. Users need only use this for encoding. Net::Frame::Layer::DNS::RR calls this as needed to assist in
See also Net::Frame::Layer for other attributes and methods.
Priority of target host, lower are preferred.
Weight for entries with the same priority, higher are preferred.
The port on target host of service.
Domain name of the target host.
The following are inherited attributes. See Net::Frame::Layer for more information.
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.
No constants here.
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.