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

Simon Kelley simon at thekelleys.org.uk
Wed Jan 21 20:48:21 GMT 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

OK, the first problem: I didn't anticipate that you're using
dhcp-optsfile, do there's no support for that in the code I checked
in. That's easily fixed.

There's no support for addn-hosts either. You're including the
hostname on the dhcp-host stanza, so the hosts file may be redundant,
but it does allow the hostname to resolve in the DNS even if the host
doesn't have a DHCP lease. If that why you're using the hosts file? If
so, I need to think about that a bit more.


Re: you second message. There's no logging for this, given we're
trying to support lots of files, I didn't want to clog up the logs.


Cheers,

Simon.


On 21/01/15 16:10, Yongkang You wrote:
> 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.
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJUwBCVAAoJEBXN2mrhkTWiitIP/069CKVWcQJakGhcU9ey+7z4
0Umg/npk2LRVBWMoIjNsubfoMcaehq5Rhwe8bUKwbP7rBKRmCkA1rTMcw0XNzPjf
VTT+j5J1BygoZmtDsNY6uK5jSM0aCS8fXx87jmRXY18UcCazkFghgy4ylmQQCvPa
wQwbTv/2wiVf0Pu/Acy5JEiR9aj3GxjShPUk4hlwzIZ8G51rfVQlSHMM6wI02j3a
TRRHEWirlLraNeb3V0HokZC5Qmgdz5o6sLNHy8AU/dKSshY4ok1HQYFuzOlyPaFD
PRsfrDS0pEv169I14NW5+fnaJ5eXaW4PPKCShrtFZTrG6xeXLyDaUgPtpJgOIsFj
sQrLaPM/F9IwkPqYtba5siKbA5zMZZaqrAmFoGs5OFYGzqXk4lzxdmI1++aUV1SN
lKageUjJJ/4WLSIHcWjSAFi1XBZs+YDgJ3ulMYF/aEiySWNSHNAz7QB7d3anN7Jx
YU4SCNUAmgUPrzVyVSoiOVgnJHSkaqRBf7G9OD7qtxAHkjDOEV7ZiDEUycPeJYcz
Fx8bIs5kzYFuKgW0I9bk6lQELz4zyBtYZgZ5NqRJrMPMH1BCm9r5xKCkN5cLczj7
GctFhNXQpof7jF6b/ex9OQNS0cVwYA78dwM0qfhKOZho4+AGKgRKWhMAwxNR804n
0s30XqUSOqnD9S3ZKc2e
=fIcw
-----END PGP SIGNATURE-----



More information about the Dnsmasq-discuss mailing list