fix(dns): align snap BIND config with deb packaging#330
Open
alexsander-souza wants to merge 1 commit into
Open
fix(dns): align snap BIND config with deb packaging#330alexsander-souza wants to merge 1 commit into
alexsander-souza wants to merge 1 commit into
Conversation
Collaborator
|
Check where you would like a Mattermost message to be sent to when CI completes and this PR is merged
|
Contributor
Author
|
there's no "browseable" version (that I know) of the config files shipped with
|
95ed545 to
86c0788
Compare
The snap was shipping static named.conf and db.local files that diverged from the system bind9 package and required manual maintenance. On Ubuntu 26.04+, bind9 no longer ships db.local and the localhost zone is handled internally by BIND. Rewrite run-named to derive all BIND config files from the staged bind9 package at runtime, applying only the minimal snap-specific patches: - named.conf: rewrite /etc/bind/ paths to $SNAP_DATA/bind/ - named.conf.options: written fresh with snap paths and the MAAS options include, replacing the trivial bind9-shipped version - named.conf.root-hints: rewrite /usr/share/dns/ to $SNAP/usr/share/dns/ - named.conf.local: copied verbatim with the named.conf.maas include appended, mirroring what edit_named_options does for the deb install
86c0788 to
6bf9f56
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The snap was shipping static named.conf and db.local files that diverged from the system bind9 package and required manual maintenance. On Ubuntu 26.04+, bind9 no longer ships db.local and the localhost zone is handled internally by BIND.
Rewrite run-named to derive all BIND config files from the staged bind9 package at runtime, applying only the minimal snap-specific patches: