aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/librdns/packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/librdns/packet.c')
-rw-r--r--contrib/librdns/packet.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/librdns/packet.c b/contrib/librdns/packet.c
index 25f3d8979..e3020d7e8 100644
--- a/contrib/librdns/packet.c
+++ b/contrib/librdns/packet.c
@@ -268,7 +268,12 @@ rdns_add_edns0 (struct rdns_request *req)
*p16++ = 0;
/* Z 10000000 00000000 to allow dnssec */
p8 = (uint8_t *)p16;
- *p8++ = 0x80;
+ if (req->resolver->enable_dnssec) {
+ *p8++ = 0x80;
+ }
+ else {
+ *p8++ = 0x00;
+ }
*p8++ = 0;
p16 = (uint16_t *)p8;
/* Length */