[dnsdist] send command from command line
Alejandro Adroher Mellado
alejandro.adroher at omniaccess.com
Thu Mar 17 09:09:40 UTC 2016
Hi Remi,
Thanks a lot for your answer.
Also if I'm executing the command on the server I need so set that key? I thought that the use of setKey and makeKey was not really important if I had no plan to set secured communication with dnsdist. Maybe I'm wrong.
Question: There is possible to access dnsdist from another computer? I execute the client connection always from the server computer.
I have just installed libsodium-1.0.8 and restarted dnsdist, but I'm still getting the same result.
> makeKey()
setKey("plaintext")
Have a nice day Remi.
Good morning to all!
-----Original Message-----
From: Remi Gacogne [mailto:remi.gacogne+dnsdist at powerdns.com]
Sent: jueves, 17 de marzo de 2016 8:42
To: Alejandro Adroher Mellado <alejandro.adroher at omniaccess.com>; dnsdist at mailman.powerdns.com
Subject: Re: [dnsdist] send command from command line
Hi Alejandro,
On 03/16/2016 04:01 PM, Alejandro Adroher Mellado wrote:
> There is someone of you who knows how to send command to dnsdist from
> command line??
> I’m trying add Pool Rule like:
>
> dnsdist --client -e 'addPoolRule({"aaaaa.22a"}, "abuse")'
> Connecting to 127.0.0.1:5199
> Fatal error: EOF while reading message
It looks like a secret key mismatch. Could you check that the dnsdist server and client use the same configuration file, or at least have the same key (look for setKey() in the configuration file)?
Anyway you should have more information in the server's logs. For a key mismatch, you can expect to see something like:
Got an exception in client connection from 127.0.0.1:XXXXX: Could not decrypt message
--
Remi Gacogne
PowerDNS.COM BV - https://www.powerdns.com/
More information about the dnsdist
mailing list