-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
base: main
Are you sure you want to change the base?
Conversation
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. |
# logfile: "/var/log/unbound.log" # won't work due to apparmor | ||
# use-syslog: no |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
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)
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.