-
Notifications
You must be signed in to change notification settings - Fork 34
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
Update profile parameter "resolver.defaults.retry" #1258
base: develop
Are you sure you want to change the base?
Conversation
This commit updates "resolver.defaults.retry" profile parameter by making it more proper to its name: - Make it exclude the initial query. Note that the actual value of "resolver.defaults.retry" is silently incremented before being passed to Zonemaster-LDNS. This is needed because LDNS does count the initial query as a try with this parameter. - Update default values - Update documentation - Update unitary tests
This is a breaking change. In previous versions you could set retry=1 to disable retrying, but with this change such installations will in fact start retrying unless the configuration is updated. |
I am not against the change, but I think its value is marginal since the parameter is probably almost never changed. Unless there is another change that triggers a |
It is indeed a breaking change, but I welcome it for the following reasons:
|
Another option would be to add |
Thing is, the more I look at it, the more I doubt about whose responsibility it is to fix the underlying issue. I see that the value of Such a change needs more thought. |
I agree that this is a problem we inherited from LDNS. Redefining the semantics of Right now some of our profile properties mirror interfaces provided by LDNS. But we are the ones responsible for interfaces we export. If LDNS would change its semantics, it is our responsibility to adapt so that our interfaces remain stable. We all seem to agree that our current With the first solution we export an interface that looks like it mirrors LDNS but really doesn't when you look closer. This would be a (small) source of confusion. And as @marc-vanderwal pointed out we risk changing the behavior of a few existing installations. With the second solution there is a bit more work to be done for us, and the few users who actually use this property would have to update their configs before we remove the old property. Personally I'm leaning more towards the second solution. |
Purpose
This PR updates
resolver.defaults.retry
profile parameter by making it more proper to its name. See "Changes" section below.Context
Fixes #1070
Changes
resolver.defaults.retry
is silently incremented before being passed to Zonemaster-LDNS. This is needed because LDNS does count the initial query as a try with this parameter.How to test this PR
Unit tests should pass.
Also you can change the value of
resolver.defaults.retry
inshare/profile.json
and test manually with :