Skip to content
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

dnsdist: add option to showRules actions to truncate rule length output #6402

merged 2 commits into from Mar 27, 2018


Copy link

@chbruyand chbruyand commented Mar 27, 2018

Short description

This fix #5763 while not changing the default output behaviour.


I have:

  • read the document
  • compiled and tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added or modified regression test(s)
  • added or modified unit test(s)
Copy link

@rgacogne rgacogne left a comment

Looks good, a couple nits

@@ -408,15 +408,15 @@ const std::vector<ConsoleKeyword> g_consoleKeywords{
{ "show", true, "string", "outputs `string`" },
{ "showACL", true, "", "show our ACL set" },
{ "showBinds", true, "", "show listening addresses (frontends)" },
{ "showCacheHitResponseRules", true, "[showUUIDs]", "show all defined cache hit response rules, optionally with their UUIDs" },
{ "showCacheHitResponseRules", true, "[{showUUIDs=false, truncateRuleWidth=-1}]", "show all defined cache hit response rules, optionally with their UUID sand optionally truncated to a given width" },

This comment has been minimized.


rgacogne Mar 27, 2018

s/UUID sand/UUIDs and/

@@ -915,24 +915,39 @@ void parseRuleParams(boost::optional<luaruleparams_t> params, boost::uuids::uuid
uuid = makeRuleID(uuidStr);

typedef std::unordered_map<std::string, boost::variant<bool, int, std::string, std::vector<std::pair<int,int> > > > localbind_t;

This comment has been minimized.


rgacogne Mar 27, 2018

localbind_t is not a really good name and we already use it in another unit, perhaps ruleparams_t or something like that?

This comment has been minimized.


chbruyand Mar 27, 2018
Author Member


@pieterlexis pieterlexis merged commit fa4a352 into PowerDNS:master Mar 27, 2018
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
@chbruyand chbruyand deleted the chbruyand:dnsdist-issue-5763 branch Mar 27, 2018
@rgacogne rgacogne mentioned this pull request Mar 29, 2018
3 of 6 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

3 participants