Hello Vladimir,

many thanks for your explanation regarding your meaning of command with using control@1. But I'm failed.

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**
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.
Any other option how silently do a "reload" hints. in the case when is a record in this file changed?

thanks, 
--
Smil Milan Jeskyňka Kazatel


On 9/2/19 3:00 PM, Milan Jeskynka Kazatel wrote:
> if I understand your hint correctly, then I should change in the
> config file a variable from hints.add_hosts([path])
> to hints.config([path]) because it does the same things + reload hints.

No, changing the config isn't needed (and won't help).  The hints.config
command clears all hints and loads new ones from a file.  Let me write a
more explicit example doing the reload:

echo "hints.config('/etc/hosts')" | sudo nc -U /run/knot-resolver/control@1

--Vladimir