#1110202 "/etc/bind/named.conf.root-hints:2: when using 'view' statements, all zones must be in views"

Package:
bind9
Source:
bind9
Description:
Internet Domain Name Server
Submitter:
Jonathan Kamens
Date:
2025-09-22 15:35:01 UTC
Severity:
normal
#1110202#5
Date:
2025-07-31 20:41:55 UTC
From:
To:
Just upgraded bind9, got this during the upgrade:

Installing new version of config file /etc/bind/named.conf ...
/etc/bind/named.conf.root-hints:2: when using 'view' statements, all zones must be in views
dpkg: error processing package bind9 (--configure):

This is because I use views in /etc/bind/named.conf.local.

I imagine other people are going to run into this as well. I'm not
sure what the right fix is, but I felt I should call this out as an
issue.

#1110202#10
Date:
2025-09-21 09:35:06 UTC
From:
To:
This is not a bug.
#1110202#15
Date:
2025-09-22 14:45:34 UTC
From:
To:
I don't think it is a bug in bind.

I do think it is a bug in the Debian packaging of bind: breaking
people's existing configurations on upgrade without any advance warning
or instructions for how to fix it.

At the very least IMO it should be documented in NEWS.Debian.

#1110202#20
Date:
2025-09-22 15:32:13 UTC
From:
To:
What could the Debian packaging do here? Isnt it that the new version of
bind ist just stricter in what it expects to be inside a view and what
is allowed outside of a view?

You could start with sending a patch to NEWS.Debian or filing an MR on
Salsa. It is always easier to just accept a suggestion than to write
your own.

That being said, it is unlikely that thie NEWS.Debian change will be in
trixie unless another issue might warrant a stable update that this
NEWS.Debian change could be piggybacked on.

Greetings
Marc