dnstap per view configuration
Summary
I'm upgrading from 9.14.2 to 9.14.7 but commit a4f38bec no longer permits dnstap per view configuration
BIND version used
BIND 9.14.7 (Stable Release) <id:d410de0>
running on Linux x86_64 3.10.0-1062.1.2.el7.x86_64 #1 SMP Mon Sep 30 14:19:46 UTC 2019
built by make with '--enable-full-report' '--sysconfdir=/usr/local/etc' '--localstatedir=/var' '--without-libtool' '--with-libxml2' '--with-libjson' '--with-zlib' '--with-lmdb' '--with-libidn2' '--disable-ipv6' '--enable-dnstap' 'CFLAGS=-march=native -O2 -pipe' 'PKG_CONFIG_PATH=PKG_CONFIG_PATH:/usr/local/lib/pkgconfig'
compiled by GCC 4.8.5 20150623 (Red Hat 4.8.5-39)
compiled with OpenSSL version: OpenSSL 1.0.2k 26 Jan 2017
linked to OpenSSL version: OpenSSL 1.0.2k-fips 26 Jan 2017
compiled with libxml2 version: 2.9.1
linked to libxml2 version: 20901
compiled with libjson-c version: 0.11
linked to libjson-c version: 0.11
compiled with zlib version: 1.2.7
linked to zlib version: 1.2.7
threads support is enabled
Steps to reproduce
options {
...
dnstap-output unix "/var/run/named/dnstap.sock";
dnstap-identity hostname;
...
};
view "default" {
match-destinations { x.x.x.x; x.x.x.x; };
};
view "umbrella"{
match-destinations { y.y.y.y; y.y.y.y; };
dnstap { client response; };
};
What is the current bug behavior?
named-checkconf reports: 'dnstap-output' must be set if 'dnstap' is set'
What is the expected correct behavior?
named-checkconf can parse the configuration. Putting dnstap-output in the view configuration you get this error: 'unknown option 'dnstap-output''
Relevant configuration files
options {
...
dnstap-output unix "/var/run/named/dnstap.sock";
dnstap-identity hostname;
...
};
view "default" {
match-destinations { x.x.x.x; x.x.x.x; };
};
view "umbrella"{
match-destinations { y.y.y.y; y.y.y.y; };
dnstap { client response; };
};
Relevant logs and/or screenshots
Possible fixes
Removing commit a4f38bec solve the problem.