Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace bind9 with unbound #2193

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

kiekerjan
Copy link
Contributor

This pull request is one of a series of three I created after chasing some dns issues (e.g. here and here but there are more reports of dns issues on github and on the forum)

  1. (Fixes to DNS lookups #2191) Basic changes
  2. (Change DNS lookup timeout handling #2192) Changes to dns request timeout handling
  3. Replace bind9 with unbound

This pull request can be used separate from the other two (#2191 and #2192). It replaces the bind9 dns resolver with the unbound dns resolver. Reasons: Mail-in-a-Box only uses the recursive part of bind9. Thus replacing with unbound makes for a simpler installation and configuration. It is also a good companion to nsd which is for authorative DNS only.

@JoshData
Copy link
Member

JoshData commented Nov 9, 2022

Although I agree with the idea, this is too significant of a change to go out so soon after a major update. We'll be in bug-fix-only mode for a while.

Comment on lines +9 to +10
# logfile: "/var/log/unbound.log" # won't work due to apparmor
# use-syslog: no
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coming back to this PR...

Is unbound logging to somewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's logging to the systemd journal and to the syslog.

@@ -0,0 +1,68 @@
server:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How different is this from the stock configuration file when ubound is installed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A number of the options here are indeed the default for a stock configuration. The main differences are probably in the performance and hardening settings.
Some testing seems to confirm the unbound configuration will work out of the box.

setup/system.sh Outdated
apt-get purge -qq -y bind9 bind9-utils

# Install unbound and dns utils (e.g. dig)
apt_install unbound python3-unbound bind9-dnsutils
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And I think python3-unbound isn't needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That seems to be true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants