Hello Vladimir, 

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.
"Clear any configured hints, and optionally load a hosts-like file as in hints.add_hosts(path). (Root hints are not touched.)"
Could you please more specify the "command" how to in the script attach it to the control socket? You mention a echo.
Anyway, the hint from Petr Spacek sounds good for my case.
***
If you require zero-downtime and have only single kresd instance you 
can do this: 
systemctl start kresd@2 
systemctl restart kresd@1 
systemctl stop kresd@2 

Please note the numbers at the end! 
***

I need to know what option is more suggested and supports daemon-reload in the case when the option is missing. 
Why is not exists so simply command like "systemctl reload kresd@1"

Thank you for your time and advice.
--
Smil Milan Jeskyňka Kazatel


Hello.

On 9/2/19 11:46 AM, Milan Jeskynka Kazatel wrote:
> Can I somehow process a change in the list of static records for knot
> resolver like a command for reloading configuration?

In this particular case there's also a command that clears the hints and
(optionally) loads a file:
https://knot-resolver.readthedocs.io/en/stable/modules.html#c.hints.config 
You can run commands by attaching to the control socket, e.g. echo
"command" | nc -U /run/knot-resolver/control@1

--Vladimir