Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions unbound.conf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ server:
do-daemonize: no

prefetch: yes
prefetch-key: yes
target-fetch-policy: "-1 -1 -1 -1 -1"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't quite understand the meaning of this setting. What is the benefit of setting it to "-1 -1 -1 -1 -1"?

Choose a reason for hiding this comment

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

this seems to remove limit on rule of how deep to go down with queries while prefetching

-1 == prefetch all

Recommended for enabling the latter:

If you enable it consider adding more numbers after the tar-get-fetch-policy to increase the max depth that is checked to.

qname-minimisation: yes
harden-referral-path: yes
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is experimental. I have no experience with this setting and feel a bit uncomfortable setting it.

Choose a reason for hiding this comment

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

nice to have benefits:

enforces DNSSEC validation on nameserver NS sets and the nameserver addresses

according to documentation and as far i understand this, it must be safe. Because just generating some more queries and additional validation for and is only disabled because more queries can produce a bit more load

rrset-roundrobin: yes

auto-trust-anchor-file: "/var/lib/unbound/root.key"
Expand Down