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: Implement 'reload()' to rotate Log(Response)Action's log file #10527

merged 3 commits into from
Jul 7, 2021


Copy link

Short description

Fixes #10502.


I have:

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

@rgacogne rgacogne merged commit 19f7e44 into PowerDNS:master Jul 7, 2021
@rgacogne rgacogne deleted the ddist-log-reload branch July 7, 2021 10:09
Copy link

Hi team, quick question, how do I call the reload method of the LogAction please? It is not very well documented.

At the moment I have this:

addAction(AllRule(), LogAction("/var/log/dnsdist.log", false, true, false))

How do I configure the conf file if I want dnsdist.log to be rotated please?

Copy link
Member Author

rgacogne commented Aug 22, 2022

You are asking a question on a closed pull request, which is likely to be unseen. I would suggest posting on the mailing-list or on IRC instead.
The short version is that LogAction("/var/log/dnsdist.log", false, true, false) returns on object on which you can call the reload() method:

mylogaction = LogAction("/var/log/dnsdist.log", false, true, false)
addAction(AllRule(), mylogaction)

This can be done via the console: or in maintenance, for example:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

Successfully merging this pull request may close these issues.

dnsdist: Ponder adding the ability to rotate the LogAction file
3 participants