<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 21, 2015 at 4:57 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":rl" class="" style="overflow:hidden">There's some code in the git repo now, or download the 2.73test6 tarball.<br>
<br>
I've added a new config option --dhcp-hostsdir, which reads all the<br>
files in a directory in the same was as --dhcp-hostsfile, but doesn't<br>
need SIGHUP to do it.<br>
<br>
Let me know how you get on.<br></div></blockquote></div><br>Hi Simon,</div><div class="gmail_extra"><br></div><div class="gmail_extra">I am trying. I want to confirm with you firstly what I am doing is correct. </div><div class="gmail_extra"><br></div><div class="gmail_extra">I was originally using following 3 config files for 1 VM's configuration in dnsmasq.conf:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">dhcp-hostsfile=/etc/hosts.dhcp</div><div class="gmail_extra">dhcp-optsfile=/etc/hosts.option</div><div class="gmail_extra">addn-hosts=/etc/hosts.dns</div><div class="gmail_extra"><br></div><div class="gmail_extra">The contents are something like:</div><div class="gmail_extra">#cat /etc/hosts.dhcp</div><div class="gmail_extra">fa:04:0a:d5:97:00,set:fa040ad59700,10.11.10.184,<a href="http://10-11-10-184.test.org">10-11-10-184.test.org</a>,infinite<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">#cat /etc/hosts.option</div><div class="gmail_extra"><div class="gmail_extra">tag:fa040ad59700,option:router,10.11.0.1</div><div class="gmail_extra">tag:fa040ad59700,option:dns-server,10.11.0.1</div><div class="gmail_extra">tag:fa040ad59700,option:domain-name,<a href="http://test1.org">test1.org</a></div><div class="gmail_extra">tag:fa040ad59700,option:netmask,255.255.0.0</div></div><div class="gmail_extra"><br></div><div class="gmail_extra">#cat /etc/hosts.dns</div><div class="gmail_extra">10.11.10.184 <a href="http://10-11-10-184.test1.org">10-11-10-184.test1.org</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">I am trying to do: </div><div class="gmail_extra">1. change dnsmasq.conf to:</div><div class="gmail_extra">dhcp-hostsfile=/etc/hosts.dhcp-dir<br></div><div class="gmail_extra">dhcp-optsfile=/etc/hosts.option-dir</div><div class="gmail_extra">addn-hosts=/etc/hosts.dns-dir</div><div class="gmail_extra"><br></div><div class="gmail_extra">2. put the VM's configurations into 3 files which named with VM's mac under corresponding config folders. </div><div class="gmail_extra">e.g. </div><div class="gmail_extra"><div class="gmail_extra">#cat /etc/hosts.dhcp-dir/fa:04:0a:d5:97:00</div><div class="gmail_extra">fa:04:0a:d5:97:00,set:fa040ad59700,10.11.10.184,<a href="http://10-11-10-184.test.org">10-11-10-184.test.org</a>,infinite<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">#cat /etc/hosts.option-dir/fa:04:0a:d5:97:00</div><div class="gmail_extra"><div class="gmail_extra">tag:fa040ad59700,option:router,10.11.0.1</div><div class="gmail_extra">tag:fa040ad59700,option:dns-server,10.11.0.1</div><div class="gmail_extra">tag:fa040ad59700,option:domain-name,<a href="http://test1.org">test1.org</a></div><div class="gmail_extra">tag:fa040ad59700,option:netmask,255.255.0.0</div></div><div class="gmail_extra"><br></div><div class="gmail_extra">#cat /etc/hosts.dns-dir/fa:04:0a:d5:97:00</div><div class="gmail_extra">10.11.10.184 <a href="http://10-11-10-184.test1.org">10-11-10-184.test1.org</a><br></div><div><br></div></div><div>And I will duplicate step #2 with 10k VMs. </div><div><br></div>-- <br><div class="gmail_signature">Yongkang You</div>
</div></div>