POE::Filter::DNS::TCP - A POE Filter to handle DNS over TCP connections
version 0.06
use POE::Filter::DNS::TCP; my $filter = POE::Filter::DNS::TCP->new(); my $arrayref_of_net_dns_objects = $filter->get( [ $dns_stream ] ); my $arrayref_of_streamed_dns_pckts = $filter->put( $arrayref_of_net_dns_objects );
POE::Filter::DNS::TCP is a POE::Filter for parsing and generating DNS messages received from or transmitted (respectively) over TCP as per RFC 1035.
new
Creates a new POE::Filter::DNS::TCP object.
get
get_one_start
get_one
Takes an arrayref which is contains streams of raw TCP DNS packets. Returns an arrayref of Net::DNS::Packet objects.
put
Takes an arrayref of Net::DNS::Packet objects. Returns an arrayref of raw TCP DNS packets.
clone
Makes a copy of the filter, and clears the copy's buffer.
Chris Williams <chris@bingosnet.co.uk>
Hans Dieter Pearcey <hdp@cpan.org>
Rocco Caputo <rcaputo@cpan.org>
This software is copyright (c) 2014 by Chris Williams, Hans Dieter Pearcey and Rocco Caputo.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install POE::Filter::DNS::TCP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Filter::DNS::TCP
CPAN shell
perl -MCPAN -e shell install POE::Filter::DNS::TCP
For more information on module installation, please visit the detailed CPAN module installation guide.