On 9/5/19 11:37 AM, Milan Jeskynka Kazatel wrote:
Unfortunately, I'm using now version Knot DNS
Resolver, version 2.3.0
(I really want to upgrade it later) trough a systemd with module HTTP
on Centos 7.
For me, the kresd does not create any control@1 nowhere, then I´m not
able to use **echo "hints.config('/etc/hosts')" | sudo nc -U
/run/knot-resolver/control@1**
Oh, for CentOS the packaging is a bit different than elsewhere. I think
the control socket is located in /var/cache/knot-resolver/tty/$PID - at
least in the current 4.2.0 - anyway, if you find that file, it should
work the same even for 2.3.0.
And unfortunately, my second option with two instances
of kresd@1 and
kresd@2, mentioned by Petr Špaček @ CZ.NIC, failed because my HTTP
address and port are already in use.
I think this particular problem was solved in 4.0.0
Any other option how silently do a "reload"
hints. in the case when is
a record in this file changed?
Restarting the service is probably best in your
current situation. The
cache is kept, so it should be cheap (and easy!).
--Vladimir