From 92f0280bfb0200bd40e32c9785e18e5bafd97ac4 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Thu, 27 Jan 2000 01:08:09 +0000 Subject: [PATCH] return NOTFOUND if a hints lookup fails --- lib/dns/view.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/dns/view.c b/lib/dns/view.c index 9239ee20e9..0e6962ba6c 100644 --- a/lib/dns/view.c +++ b/lib/dns/view.c @@ -559,6 +559,9 @@ dns_view_find(dns_view_t *view, dns_name_t *name, dns_rdatatype_t type, rdataset, sigrdataset); if (result == ISC_R_SUCCESS || result == DNS_R_GLUE) result = DNS_R_HINT; + else if (result == DNS_R_NXDOMAIN || + result == DNS_R_NXRDATASET) + result = DNS_R_NOTFOUND; } cleanup: