[Dnsmasq-discuss] How does DNSMASQ handle large concurrent configure file updating request requests

Yongkang You yongkang.you at gmail.com
Wed Jan 21 16:10:38 GMT 2015


On Wed, Jan 21, 2015 at 4:57 AM, Simon Kelley <simon at thekelleys.org.uk>
wrote:

> There's some code in the git repo now, or download the 2.73test6 tarball.
>
> I've added a new config option --dhcp-hostsdir, which reads all the
> files in a directory in the same was as --dhcp-hostsfile, but doesn't
> need SIGHUP to do it.
>
> Let me know how you get on.
>

Hi Simon,

I am trying. I want to confirm with you firstly what I am doing is correct.

I was originally using following 3 config files for 1 VM's configuration in
dnsmasq.conf:

dhcp-hostsfile=/etc/hosts.dhcp
dhcp-optsfile=/etc/hosts.option
addn-hosts=/etc/hosts.dns

The contents are something like:
#cat /etc/hosts.dhcp
fa:04:0a:d5:97:00,set:fa040ad59700,10.11.10.184,10-11-10-184.test.org
,infinite

#cat /etc/hosts.option
tag:fa040ad59700,option:router,10.11.0.1
tag:fa040ad59700,option:dns-server,10.11.0.1
tag:fa040ad59700,option:domain-name,test1.org
tag:fa040ad59700,option:netmask,255.255.0.0

#cat /etc/hosts.dns
10.11.10.184 10-11-10-184.test1.org

I am trying to do:
1. change dnsmasq.conf to:
dhcp-hostsfile=/etc/hosts.dhcp-dir
dhcp-optsfile=/etc/hosts.option-dir
addn-hosts=/etc/hosts.dns-dir

2. put the VM's configurations into 3 files which named with VM's mac under
corresponding config folders.
e.g.
#cat /etc/hosts.dhcp-dir/fa:04:0a:d5:97:00
fa:04:0a:d5:97:00,set:fa040ad59700,10.11.10.184,10-11-10-184.test.org
,infinite

#cat /etc/hosts.option-dir/fa:04:0a:d5:97:00
tag:fa040ad59700,option:router,10.11.0.1
tag:fa040ad59700,option:dns-server,10.11.0.1
tag:fa040ad59700,option:domain-name,test1.org
tag:fa040ad59700,option:netmask,255.255.0.0

#cat /etc/hosts.dns-dir/fa:04:0a:d5:97:00
10.11.10.184 10-11-10-184.test1.org

And I will duplicate step #2 with 10k VMs.

-- 
Yongkang You
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20150122/7b27b9cf/attachment.html>


More information about the Dnsmasq-discuss mailing list