[Dnsmasq-discuss] --addn-hosts and --hostsdir
Geert Stappers
stappers at stappers.nl
Wed Oct 2 07:25:43 BST 2019
On Wed, Oct 02, 2019 at 11:16:18AM +0800, Hongyi Zhao wrote:
> Hi,
>
> The manpage said that:
>
> ---
> -H, --addn-hosts=<file>
> Additional hosts file. Read the specified file as well as
> /etc/hosts. If --no-hosts is given, read only the specified
> file. This option may be repeated for more than one additional
> hosts file. If a directory is given, then read all the files
> contained in that directory.
>
> --hostsdir=<path>
> Read all the hosts files contained in the directory. New or
> changed files are read automatically. See --dhcp-hostsdir for
> details.
> ---
>
> According to the above description, the --addn-hosts can do all the
> things done by --hostsdir,
No.
The difference is
New or changed files are read automatically.
Groeten
Geert Stappers
--
Leven en laten leven
More information about the Dnsmasq-discuss
mailing list