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
I was attempting to use echo "makeKey()" | dnsdist to get a usable console key, it works, but when I then did echo "makeKey()" | dnsdist | grep setKey it stopped working.
echo "makeKey()" | dnsdist -C /dev/null works (config is not relevant)
echo "makeKey()" | dnsdist | cat does not work, because setKey is not printed when piped
Expected behaviour
The setKey line gets printed.
Actual behaviour
The setKey does not get printed when stdout/stderr is redirected.
Other information
makeKey is implemented here but I can not find where g_outputBuffer is printed.
Usecase
My idea was to make ansible run echo "makeKey()" | dnsdist | grep setKey > /etc/dnsdist/key/key.conf if it didn't exist and then to do a includeDirectory /etc/dnsdist/key in the main config file.
Description
It would be nice if there was a dnsdist --print-new-key command that just printed a new key, no reading configs, or starting the server or listening on sockets or anything.
The text was updated successfully, but these errors were encountered:
dwfreed
added a commit
to dwfreed/pdns
that referenced
this issue
Jul 27, 2019
Short description
I was attempting to use
echo "makeKey()" | dnsdist
to get a usable console key, it works, but when I then didecho "makeKey()" | dnsdist | grep setKey
it stopped working.Environment
Steps to reproduce
echo "makeKey()" | dnsdist
worksecho "makeKey()" | dnsdist -C /dev/null
works (config is not relevant)echo "makeKey()" | dnsdist | cat
does not work, because setKey is not printed when pipedExpected behaviour
The setKey line gets printed.
Actual behaviour
The setKey does not get printed when stdout/stderr is redirected.
Other information
makeKey
is implemented here but I can not find whereg_outputBuffer
is printed.Usecase
My idea was to make ansible run
echo "makeKey()" | dnsdist | grep setKey > /etc/dnsdist/key/key.conf
if it didn't exist and then to do aincludeDirectory /etc/dnsdist/key
in the main config file.Description
It would be nice if there was a
dnsdist --print-new-key
command that just printed a new key, no reading configs, or starting the server or listening on sockets or anything.The text was updated successfully, but these errors were encountered: