aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2010-11-04 19:18:32 +0000
committerDoug Barton <dougb@FreeBSD.org>2010-11-04 19:18:32 +0000
commit0b3de9fd35baea98991ccb87ba9105c02d15a792 (patch)
tree66650e7d536d96f46f87e11707a4372d1127cce7 /bin
parent337b882f27a474a98ca49285d17cd7371aaf4b86 (diff)
downloadsrc-0b3de9fd35baea98991ccb87ba9105c02d15a792.tar.gz
src-0b3de9fd35baea98991ccb87ba9105c02d15a792.zip
Notes
Diffstat (limited to 'bin')
-rw-r--r--bin/named/query.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/named/query.c b/bin/named/query.c
index 363c95fa670b..03f8c702be8c 100644
--- a/bin/named/query.c
+++ b/bin/named/query.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004-2010 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: query.c,v 1.257.18.53 2009/12/30 08:55:48 jinmei Exp $ */
+/* $Id: query.c,v 1.257.18.55 2010/07/03 23:45:26 tbox Exp $ */
/*! \file */
@@ -4654,6 +4654,13 @@ ns_query_start(ns_client_t *client) {
}
/*
+ * Turn on minimal response for DNSKEY and DS queries.
+ */
+ if (qtype == dns_rdatatype_dnskey || qtype == dns_rdatatype_ds)
+ client->query.attributes |= (NS_QUERYATTR_NOAUTHORITY |
+ NS_QUERYATTR_NOADDITIONAL);
+
+ /*
* If the client has requested that DNSSEC checking be disabled,
* allow lookups to return pending data and instruct the resolver
* to return data before validation has completed.