<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 8, 2015 at 6:35 AM, Simon Kelley <span dir="ltr"><<a href="mailto:simon@thekelleys.org.uk" target="_blank">simon@thekelleys.org.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":4qf" class="a3s" style="overflow:hidden">Are you using the new config keywords<br>
<br>
dhcp-hostsdir<br>
dhcp-optsdir </div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":4qf" class="a3s" style="overflow:hidden">
hostsdir<br>
<br>
These are equivalent to dhcp-hostfile, dhcp-optsfile and addn-hosts<br>
when provided with a directory, except that they use inotify and don't<br>
need SIGUSR1.<br>
<br>
It's a bit of a pain to have yet more options, but the semantics are<br>
different than the existing ones, and we need to be able to error if<br>
someone asks for the new inotify behaviour when support isn't compiled<br>
in, or we're on a platform that doesn't support it.</div></blockquote><div><br></div><div>okay. After I switched to dhcp-hostsdir and dhcp-optsdir, the magic inotifies are coming!</div><div>I can see related logs in dnsmasq.log and VM does receive IP address successfully.</div><div><br></div><div>But hostsdir doesn't work.  When new config file created, there isn't log tracked in dsmasq.log and VMs can not use hostname to ping each other. Even if I restart dnsmasq process, the config also work. The same config file works when using addn-hosts option, when reboot dnsmasq process. </div></div><br><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Yongkang You</div>
</div></div>