[Dnsmasq-discuss] --addn-hosts and --hostsdir

Hongyi Zhao hongyi.zhao at gmail.com
Wed Oct 2 04:16:18 BST 2019


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.

              Read all the hosts files contained  in  the  directory.  New  or
              changed  files  are  read automatically. See --dhcp-hostsdir for

According to the above description, the --addn-hosts can do all the
things done by  --hostsdir, why still we also have both options?

Hongsheng Zhao <hongyi.zhao at gmail.com>
Institute of Semiconductors, Chinese Academy of Sciences
GnuPG DSA: 0xD108493

More information about the Dnsmasq-discuss mailing list