in reply to Re: Disassembling DNS Packet
in thread Disassembling DNS Packet

Weird....

Are you sure you are using the methods correctly. Also. Does the header question count indicate there is a question section, same for the answer section?

e.g:

my $packet = $res->send($data->{'name'}, $data->{'type'}, 'IN'); ok($packet, "Got an answer for $data->{name} IN $data->{type}"); is($packet->header->qdcount, 1, 'Only one question'); is($packet->header->ancount, 1, 'Got single answer'); my $question = ($packet->question)[0]; my $answer = ($packet->answer)[0];

If you did all those things. You could consider sending a bug report via https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-DNS and make sure you include some sample packet data.

--Olaf (Net::DNS maintainer)