+ 971. [func] 'try-edns' can be use to disable edns on all queries.
+
970. [func] 'journal-size' can now be used to set a target
size for a journal.
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: config.c,v 1.11 2001/08/07 01:58:54 marka Exp $ */
+/* $Id: config.c,v 1.12 2001/08/30 05:52:08 marka Exp $ */
#include <config.h>
recursion true;\n\
provide-ixfr true;\n\
request-ixfr true;\n\
+ try-edns true;\n\
fetch-glue no;\n\
rfc2308-type1 no;\n\
additional-from-auth true;\n\
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: query.c,v 1.198 2001/08/27 17:20:09 gson Exp $ */
+/* $Id: query.c,v 1.199 2001/08/30 05:52:10 marka Exp $ */
#include <config.h>
{
isc_result_t result;
dns_rdataset_t *rdataset, *sigrdataset;
+ unsigned int options;
/*
* We are about to recurse, which means that this client will
if (client->query.timerset == ISC_FALSE)
ns_client_settimeout(client, 60);
+ options = client->query.fetchoptions;
+ if (!client->view->tryedns)
+ options |= DNS_FETCHOPT_NOEDNS0;
result = dns_resolver_createfetch(client->view->resolver,
client->query.qname,
qtype, qdomain, nameservers,
- NULL, client->query.fetchoptions,
+ NULL, options,
client->task,
query_resume, client,
rdataset, sigrdataset,
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: server.c,v 1.339 2001/08/07 01:58:56 marka Exp $ */
+/* $Id: server.c,v 1.340 2001/08/30 05:52:12 marka Exp $ */
#include <config.h>
CHECK(configure_view_acl(vconfig, config, "sortlist",
actx, ns_g_mctx, &view->sortlist));
+ obj = NULL;
+ result = ns_config_get(maps, "try-edns", &obj);
+ INSIST(result == ISC_R_SUCCESS);
+ view->tryedns = cfg_obj_asboolean(obj);
+
obj = NULL;
result = ns_config_get(maps, "request-ixfr", &obj);
INSIST(result == ISC_R_SUCCESS);
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: adb.c,v 1.181 2001/08/08 22:54:36 gson Exp $ */
+/* $Id: adb.c,v 1.182 2001/08/30 05:52:14 marka Exp $ */
/*
* Implementation notes
dns_adb_t *adb;
dns_adbfetch6_t *fetch;
isc_result_t result;
+ unsigned int options = 0;
name = a6ctx->arg;
INSIST(DNS_ADBNAME_VALID(name));
return;
}
+ if (!adb->view->tryedns)
+ options |= DNS_FETCHOPT_NOEDNS0;
result = dns_resolver_createfetch(adb->view->resolver, a6name,
dns_rdatatype_a6,
- NULL, NULL, NULL, 0,
+ NULL, NULL, NULL, options,
adb->task, fetch_callback_a6,
name, &fetch->rdataset, NULL,
&fetch->fetch);
goto cleanup;
}
+ if (!adb->view->tryedns)
+ options |= DNS_FETCHOPT_NOEDNS0;
result = dns_resolver_createfetch(adb->view->resolver, &adbname->name,
dns_rdatatype_a,
name, nameservers, NULL, options,
isc_result_t result;
dns_adbfetch_t *fetch;
dns_adb_t *adb;
+ unsigned int options = 0;
INSIST(DNS_ADBNAME_VALID(adbname));
adb = adbname->adb;
goto cleanup;
}
+ if (!adb->view->tryedns)
+ options |= DNS_FETCHOPT_NOEDNS0;
result = dns_resolver_createfetch(adb->view->resolver, &adbname->name,
dns_rdatatype_aaaa,
- NULL, NULL, NULL, 0,
+ NULL, NULL, NULL, options,
adb->task, fetch_callback,
adbname, &fetch->rdataset, NULL,
&fetch->fetch);
}
fetch->flags |= FETCH_FIRST_A6;
+ if (!adb->view->tryedns)
+ options |= DNS_FETCHOPT_NOEDNS0;
result = dns_resolver_createfetch(adb->view->resolver, &adbname->name,
dns_rdatatype_a6,
name, nameservers, NULL, options,
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: view.h,v 1.73 2001/08/28 03:58:23 marka Exp $ */
+/* $Id: view.h,v 1.74 2001/08/30 05:52:16 marka Exp $ */
#ifndef DNS_VIEW_H
#define DNS_VIEW_H 1
dns_acl_t * sortlist;
isc_boolean_t requestixfr;
isc_boolean_t provideixfr;
+ isc_boolean_t tryedns;
dns_ttl_t maxcachettl;
dns_ttl_t maxncachettl;
in_port_t dstport;
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: view.c,v 1.103 2001/08/27 17:20:10 gson Exp $ */
+/* $Id: view.c,v 1.104 2001/08/30 05:52:15 marka Exp $ */
#include <config.h>
view->maxcachettl = 7 * 24 * 3600;
view->maxncachettl = 3 * 3600;
view->dstport = 53;
+ view->tryedns = ISC_TRUE;
result = dns_peerlist_new(view->mctx, &view->peers);
if (result != ISC_R_SUCCESS)
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: parser.c,v 1.71 2001/08/30 05:23:00 marka Exp $ */
+/* $Id: parser.c,v 1.72 2001/08/30 05:52:18 marka Exp $ */
#include <config.h>
{ "recursion", &cfg_type_boolean, 0 },
{ "provide-ixfr", &cfg_type_boolean, 0 },
{ "request-ixfr", &cfg_type_boolean, 0 },
+ { "try-edns", &cfg_type_boolean, 0 },
{ "fetch-glue", &cfg_type_boolean, CFG_CLAUSEFLAG_OBSOLETE },
{ "rfc2308-type1", &cfg_type_boolean, CFG_CLAUSEFLAG_NYI },
{ "additional-from-auth", &cfg_type_boolean, 0 },