Edit report at https://pear.php.net/bugs/bug.php?id=17599&edit=1

ID: 17599
Updated by: daniel.oconnor@gmail.com
Reported By: pear dot php at feystorm dot net
Summary: doesnt handle multiple messages in a response
-Status: Feedback
+Status: Wont fix
Type: Bug
Package: Net_DNS
Operating System: RHEL 5.4
Package Version: SVN
PHP Version: 5.2.12
Roadmap Versions:
New Comment:

-Status: Feedback
+Status: Wont fix
Hey Patrick, I can't apply your patch in it's current form I am afraid.

Previous Comments:

[2010-08-08 12:50:29] doconnor

-Status: Open
+Status: Feedback
Thanks for the patch!

Can I get you to re-do it against trunk? It didn't seem to work happily
when I tried to apply it.
And to turn the test case into a phpunit test? (see
trunk\tests\Net_DNSResolverTest.php for instance)


[2010-07-15 18:52:23] feystorm

Added #patch


[2010-07-15 18:50:13] feystorm

When a response contains a large amount of data (like an AXFR), BIND
will break it up over multiple messages, however Net_DNS stops at the
first messages and discards the rest of the data.

Test script:
$ndr = new Net_DNS_Resolver();
$ndp = new Net_DNS_Packet();
$ndrr =
$ndp->additional = array($ndrr);
$ndp->header->arcount = 1;
$ndra = $ndr->send_tcp($ndp,$ndp->data());

Expected result:
Should contain the rest of the zone transfer

Actual result:
Transfer truncated at the end of the first message (1022 answers in my


Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
grouppear-bugs @
postedJan 27, '12 at 1:09p
activeJan 27, '12 at 1:09p

1 user in discussion

Daniel Oconnor: 1 post



site design / logo © 2022 Grokbase