You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the very first codeblock it says: name2:chopoff() …
that should be: name2:chopOff()…
Also, the print(…) statements don't seem to work
I don't know, if I don't know enough about Lua or if I may have misconfigured something, but the print statements don't have an output in the logfile/journald.
Replacing them with pdnslog(<stuff to print>) seems to work though.
E.g. instead of print(myname:wirelength()) -- prints "17"
just: pdnslog(myname:wirelength()) -- prints "17"
There you are linking to the new YAML style settings, which is confusing, since it's the only time you do that.
I hope this helps.
P.S.: I would've submitted a PR with the fixes, but it seems, that you don't have your documentation in a public repo (like Nitrokey or Nextcloud have ;-)
The text was updated successfully, but these errors were encountered:
Hello, PowerDNS folks,
I found some errors in the documentation.
Environment
The first errors are in the "The DNSName object":
In the very first codeblock it says:
name2:chopoff() …
that should be:
name2:chopOff()…
Also, the
print(…)
statements don't seem to workI don't know, if I don't know enough about Lua or if I may have misconfigured something, but the print statements don't have an output in the logfile/journald.
Replacing them with
pdnslog(<stuff to print>)
seems to work though.E.g. instead of
print(myname:wirelength()) -- prints "17"
just:
pdnslog(myname:wirelength()) -- prints "17"
I've also found an error in the "Operating PowerDNS Recursor"
Here it says
There you are linking to the new YAML style settings, which is confusing, since it's the only time you do that.
I hope this helps.
P.S.: I would've submitted a PR with the fixes, but it seems, that you don't have your documentation in a public repo (like Nitrokey or Nextcloud have ;-)
The text was updated successfully, but these errors were encountered: