Net::DNS::ToolKit::Debug - ToolKit print tools


Net-DNS-ToolKit documentation  | view source Contained in the Net-DNS-ToolKit distribution.

Index


NAME

Top

Net::DNS::ToolKit::Debug - ToolKit print tools

SYNOPSIS

Top

  use Net::DNS::ToolKit::Debug qw(
	print_head
	print_buf
  );

  STDOUT <= print_head(\$buffer);
  STDOUT <= print_buf(\$buffer,$from,$to);

DESCRIPTION

Top

Functions to print/examine DNS buffers.

* STDOUT <= print_head(\$buffer);

Print a formated text description of the header.

  input:	pointer to buffer

  output:	to STDOUT

  ID      => 1234    
  QR      => 1  
  OPCODE  => QUERY
  AA      => 0 
  TC      => 0
  RD      => 1   
  RA      => 0
  Z       => 0
  AD      => 0
  CD      => 0
  RCODE   => NOERROR
  QDCOUNT => 1
  ANCOUNT => 5
  NSCOUNT => 2
  ARCOUNT => 3

* STDOUT <= print_buf(\$buffer,$from,$to);

Print a formated description of the $buffer contents.

  input:	$from [start],
		$to   [end],

  output:	to STDOUT

  If $from is missing, begin at $buffer start.
  If $to is missing, end at $buffer end.

  Prints nothing if $from > $to.

DEPENDENCIES

Top

	Net::DNS::ToolKit

EXPORT_OK

Top

        print_head
        print_buf

AUTHOR

Top

Michael Robinton <michael@bizsystems.com>

COPYRIGHT

Top

See also:

Top

Net::DNS::Codes(3), Net::DNS::ToolKit(3)


Net-DNS-ToolKit documentation  | view source Contained in the Net-DNS-ToolKit distribution.