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

ID: 17599
Updated by: [email protected]
Reported By: pear dot php at feystorm dot net
Summary: doesnt handle multiple messages in a response
-Status: Open
+Status: Feedback
Type: Bug
Package: Net_DNS
Operating System: RHEL 5.4
Package Version: SVN
PHP Version: 5.2.12
Roadmap Versions:
New Comment:

-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)


Previous Comments:
------------------------------------------------------------------------

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

Added #patch
bug:17599;patch:Net_DNS-split_response.patch;revision:1279219943;.

------------------------------------------------------------------------

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

Description:
------------
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();
$ndr->nameservers(array($config['dns']['master']));
$ndp = new Net_DNS_Packet();
$ndp->buildQuestion($zone,'AXFR','IN');
$ndrr =
&Net_DNS_RR::new_from_data($key_name,'TSIG','IN',0,strlen($key_value),$key_value,0);
$ndp->additional = array($ndrr);
$ndp->header->arcount = 1;
$ndra = $ndr->send_tcp($ndp,$ndp->data());
print_r($ndra->answer);

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
test).

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedAug 8, '10 at 12:50p
activeAug 8, '10 at 12:50p
posts1
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 1 post

People

Translate

site design / logo © 2023 Grokbase