[Dnsmasq-discuss] No forgetting logic when using hostsdir
Simon Kelley
simon at thekelleys.org.uk
Tue May 19 17:05:52 BST 2020
On 17/05/2020 11:28, Kevin 'ldir' Darbyshire-Bryant wrote:
> The man page sayeth: (http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html)
>
> --hostsdir=<path>
> Read all the hosts files contained in the directory. New or changed files are read automatically. See --dhcp-hostsdir for details.
>
> --dhcp-hostsdir=<path>
> This is equivalent to --dhcp-hostsfile, except for the following. The path MUST be a directory, and not an individual file. Changed or new files within the directory are read automatically, without the need to send SIGHUP. If a file is deleted or changed after it has been read by dnsmasq, then the host record it contained will remain until dnsmasq receives a SIGHUP, or is restarted; ie host records are only added dynamically.
>
>
> To re-iterate:
>
> Host entries from dynamically read files will remain in dnsmasq’s memory if removed from those file/s unless dnsmasq is persuaded to forget them, either by SIGHUP or a complete restart.
>
> Personally I would find it a welcome option if dnsmasq could also dynamically forget entries. I suspect it is not as simple as it sounds otherwise it would have been implemented.
^^^^^^^^^^^^^^^^^^^^ Wot he said. Deleting such entries individually
is difficult, the only easy way is a complete cache-empty, and reload
everything.
Simon.
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
More information about the Dnsmasq-discuss
mailing list