From 651a38a7061e4c76b9ff93bbd7c8e427d77c220c Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Mon, 24 Jan 2000 21:29:12 +0000 Subject: [PATCH] If a query is for type ANY, match the first view that otherwise matches. --- bin/named/client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/named/client.c b/bin/named/client.c index 04f25d33da..b9d34a8546 100644 --- a/bin/named/client.c +++ b/bin/named/client.c @@ -693,7 +693,9 @@ client_request(isc_task_t *task, isc_event_t *event) { /* * XXXRTH View matching will become more powerful later. */ - if (client->message->rdclass == view->rdclass) { + if (client->message->rdclass == view->rdclass || + client->message->rdclass == dns_rdataclass_any) + { dns_view_attach(view, &client->view); break; }