-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
kiekerjan
wants to merge
5
commits into
mail-in-a-box:main
Choose a base branch
from
kiekerjan:dnsmigratetounbound
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
9548289
replace bind9 with unbound
kiekerjan 2ef097e
suppress output when flushing unbound cache
kiekerjan 70e842f
Merge branch 'main' into dnsmigratetounbound
kiekerjan e56cb44
incorporate review comment
kiekerjan dcf1b0b
Merge branch 'main' into dnsmigratetounbound
kiekerjan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
server: | ||
# the working directory. | ||
directory: "/etc/unbound" | ||
|
||
# run as the unbound user | ||
username: unbound | ||
|
||
verbosity: 0 # uncomment and increase to get more logging. | ||
# logfile: "/var/log/unbound.log" # won't work due to apparmor | ||
# use-syslog: no | ||
Comment on lines
+9
to
+10
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. It's logging to the systemd journal and to the syslog. |
||
|
||
# By default listen only to localhost | ||
#interface: ::1 | ||
#interface: 127.0.0.1 | ||
port: 53 | ||
|
||
# Only allow localhost to use this Unbound instance. | ||
access-control: 127.0.0.1/8 allow | ||
access-control: ::1/128 allow | ||
|
||
# Private IP ranges, which shall never be returned or forwarded as public DNS response. | ||
private-address: 10.0.0.0/8 | ||
private-address: 172.16.0.0/12 | ||
private-address: 192.168.0.0/16 | ||
private-address: 169.254.0.0/16 | ||
private-address: fd00::/8 | ||
private-address: fe80::/10 | ||
|
||
# Functionality | ||
do-ip4: yes | ||
do-ip6: yes | ||
do-udp: yes | ||
do-tcp: yes | ||
|
||
# Performance | ||
num-threads: 2 | ||
cache-min-ttl: 300 | ||
cache-max-ttl: 86400 | ||
serve-expired: yes | ||
neg-cache-size: 4M | ||
msg-cache-size: 50m | ||
rrset-cache-size: 100m | ||
|
||
so-reuseport: yes | ||
so-rcvbuf: 4m | ||
so-sndbuf: 4m | ||
|
||
# Privacy / hardening | ||
# hide server info from clients | ||
hide-identity: yes | ||
hide-version: yes | ||
harden-glue: yes | ||
harden-dnssec-stripped: yes | ||
harden-algo-downgrade: yes | ||
harden-large-queries: yes | ||
harden-short-bufsize: yes | ||
|
||
rrset-roundrobin: yes | ||
minimal-responses: yes | ||
identity: "Server" | ||
|
||
# Include possible white/blacklists | ||
include: /etc/unbound/lists.d/*.conf | ||
|
||
remote-control: | ||
control-enable: yes | ||
control-port: 953 | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
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.
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.