aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2012-11-29 11:28:30 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2012-11-29 11:28:30 +0100
commit27cc9cde60fc21111627dcf50f0f640b86d35952 (patch)
tree920a27830cf8811c35651f588e936eb5ab75bbc7
parent27618d2c15e1df13c76ac5847a976f114f3de841 (diff)
downloadDns-27cc9cde60fc21111627dcf50f0f640b86d35952.zip
Dns-27cc9cde60fc21111627dcf50f0f640b86d35952.tar.gz
Dns-27cc9cde60fc21111627dcf50f0f640b86d35952.tar.bz2
Fix QDCOUNT and ANCOUNT in the NXDOMAIN header.
QDCOUNT and ANCOUNT should be set to 0.
-rw-r--r--Dns.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/Dns.php b/Dns.php
index 01f32fa..293b35b 100644
--- a/Dns.php
+++ b/Dns.php
@@ -277,10 +277,9 @@ class Dns implements \Hoa\Core\Event\Listenable {
| 3 // NXDOMAIN.
) .
// QDCOUNT.
- $buffer[4] .
- $buffer[5] .
+ pack('n', 0) .
// ANCOUNT.
- pack('n', 1) .
+ pack('n', 0) .
// NSCOUNT.
pack('n', 0) .
// ARCOUNT.