summaryrefslogtreecommitdiffstats
path: root/lib/dns/view.c
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2010-03-17 05:53:04 +0000
committerdougb <dougb@FreeBSD.org>2010-03-17 05:53:04 +0000
commitdd00bb16c74b474ce18dbc6bcfd33c42313a66ca (patch)
treea00a8645045650f393270fb01917205daf2fb0bb /lib/dns/view.c
parent78d3ed4dabea80d9111600a39b8d15b94f74c1ed (diff)
downloadFreeBSD-src-dd00bb16c74b474ce18dbc6bcfd33c42313a66ca.zip
FreeBSD-src-dd00bb16c74b474ce18dbc6bcfd33c42313a66ca.tar.gz
Vendor import of BIND 9.6.2-P1
Diffstat (limited to 'lib/dns/view.c')
-rw-r--r--lib/dns/view.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/dns/view.c b/lib/dns/view.c
index 961268e..72163b4 100644
--- a/lib/dns/view.c
+++ b/lib/dns/view.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: view.c,v 1.150.84.3 2009/11/12 23:39:23 marka Exp $ */
+/* $Id: view.c,v 1.150.84.3.8.2 2010/02/25 10:57:12 tbox Exp $ */
/*! \file */
@@ -1271,10 +1271,11 @@ dns_view_dumpdbtostream(dns_view_t *view, FILE *fp) {
(void)fprintf(fp, ";\n; Cache dump of view '%s'\n;\n", view->name);
result = dns_master_dumptostream(view->mctx, view->cachedb, NULL,
- &dns_master_style_cache, fp);
+ &dns_master_style_cache, fp);
if (result != ISC_R_SUCCESS)
return (result);
dns_adb_dump(view->adb, fp);
+ dns_resolver_printbadcache(view->resolver, fp);
return (ISC_R_SUCCESS);
}
@@ -1295,6 +1296,8 @@ dns_view_flushcache(dns_view_t *view) {
dns_cache_attachdb(view->cache, &view->cachedb);
if (view->acache != NULL)
dns_acache_setdb(view->acache, view->cachedb);
+ if (view->resolver != NULL)
+ dns_resolver_flushbadcache(view->resolver, NULL);
dns_adb_flush(view->adb);
return (ISC_R_SUCCESS);
@@ -1309,6 +1312,8 @@ dns_view_flushname(dns_view_t *view, dns_name_t *name) {
dns_adb_flushname(view->adb, name);
if (view->cache == NULL)
return (ISC_R_SUCCESS);
+ if (view->resolver != NULL)
+ dns_resolver_flushbadcache(view->resolver, name);
return (dns_cache_flushname(view->cache, name));
}
OpenPOWER on IntegriCloud