Comment 0 for bug 2006972

Revision history for this message
rwruck (robert-tweerlei) wrote :

Ubuntu release: 22.04.1 LTS (jammy) amd64
bind9 version: 1:9.18.1-1ubuntu1.3

bind9 comes with the plugins filter-a.so and filter-aaaa.so preinstalled into /usr/lib/x86_64-linux-gnu/bind/.
When trying to actually use them, bind9 fails to start:

loading plugin '/usr/lib/x86_64-linux-gnu/named/filter-aaaa.so'
failed to dlopen() plugin '/usr/lib/x86_64-linux-gnu/named/filter-aaaa.so': /usr/lib/x86_64-linux-gnu/named/filter-aaaa.so: cannot open shared object file: No such file or directory

Looks like either bind9 is configured with a wrong plugin path or the files got dropped into the wrong directory.

To reproduce, add the following to /etc/bind/named.conf.options and restart:

plugin query "filter-aaaa.so" {
    filter-aaaa-on-v4 yes;
};

Workaround: Use the full path like in

plugin query "/usr/lib/x86_64-linux-gnu/bind/filter-aaaa.so" {
    filter-aaaa-on-v4 yes;
};