-
Notifications
You must be signed in to change notification settings - Fork 336
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
T6294: Service dns forwarding add the ability to configure ZonetoCache #3896
Conversation
👍 |
✅ No issues found in unused-imports check.. Please refer the workflow run |
CI integration 👍 passed! Details
|
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.
I think the UI and help strings can be improved.
@Mergifyio rebase |
✅ Branch has been successfully rebased |
<valueless/> | ||
</properties> | ||
</leafNode> | ||
<leafNode name="interval"> |
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.
From a CLI perspective (both completion help and constraint) I think it would be easier to just make this seconds only
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.
the first version used seconds, but was reworked after this comment:
#3896 (comment)
@dmbaturin what do you think about this?
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.
Let's just do seconds for ease of validation. We can later add suffixed values, once we have a validator for them. It shouldn't be a problem because a number without any suffix is interpreted as seconds anyway, so we'll only need to relax the validation to allow human-readable values like 1d12h
.
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.
fixed
<properties> | ||
<help>Retry interval after zone retrieval errors</help> | ||
<valueHelp> | ||
<format>u32:1-2147483647</format> |
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.
Retry every 24855 days? I think the bounds are to relaxed. I'd go for 1 - 86400 so from one second to once a day.
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.
fixed
<properties> | ||
<help>Maximum zone size in megabytes</help> | ||
<valueHelp> | ||
<format>u32:0-1024</format> |
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.
I assume 0 refers to "ignore the size". If this is the case, please add a dedicated value help explaining the special meaning of 0
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.
fixed
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.
Plase make it even more obvious:
<valueHelp>
<format>u32:0</format>
<description>No restriction</description>
</valueHelp>
<valueHelp>
<format>u32:1-1024</format>
<description>Size in megabytes</description>
</valueHelp>
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.
fixed
</leafNode> | ||
<leafNode name="zonemd"> | ||
<properties> | ||
<help>ZONEMD mode</help> |
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.
What's ZONEMD mode? Maybe add a bit more context. to the help string.
Please also add
<completionHelp>
<list>ignore validate require</list>
</completionHelp>
to improve the user experience on the CLI
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.
fixed
<properties> | ||
<help>Maximum zone size in megabytes</help> | ||
<valueHelp> | ||
<format>u32:0-1024</format> |
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.
Plase make it even more obvious:
<valueHelp>
<format>u32:0</format>
<description>No restriction</description>
</valueHelp>
<valueHelp>
<format>u32:1-1024</format>
<description>Size in megabytes</description>
</valueHelp>
a98c308
to
7ede265
Compare
when I try to add root zone . as per https://docs.powerdns.com/recursor/lua-config/ztc.html#example
then /run/pdns-recursor/recursor.conf.lua ends up being
|
Thank you for testing, I think it's incorrect behavior. |
Change Summary
Types of changes
Related Task(s)
Related PR(s)
Component(s) name
Proposed changes
How to test
Smoketest result
Checklist: