>>Can we use the following feature (from 'man DSNMASQ')? 
Good catch, yes indeed, I think it should work.

seem that openstack use it !  
(--dhcp-script=/usr/bin/quantum-dhcp-agent-dnsmasq-lease-update)

https://lists.launchpad.net/openstack/msg20332.html

/usr/sbin/dnsmasq
> --no-hosts --no-resolv --strict-order --bind-interfaces
> --interface=tapc71e5285-a0 --except-interface=lo --domain=openstacklocal
> --pid-file=/var/lib/quantum/dhcp/93e695f6-5dae-41b1-8a92-2bce8cb0e785/pid
> --dhcp-hostsfile=/var/lib/quantum/dhcp/93e695f6-5dae-41b1-8a92-2bce8cb0e785/host
> --dhcp-optsfile=/var/lib/quantum/dhcp/93e695f6-5dae-41b1-8a92-2bce8cb0e785/opts
> --dhcp-script=/usr/bin/quantum-dhcp-agent-dnsmasq-lease-update
> --leasefile-ro --dhcp-range=set:tag0,50.50.1.0,static,120s


----- Mail original ----- 

De: "Dietmar Maurer" <[email protected]> 
À: "Dietmar Maurer" <[email protected]>, "Alexandre DERUMIER" 
<[email protected]> 
Cc: [email protected] 
Envoyé: Mercredi 22 Mai 2013 12:33:08 
Objet: RE: [pve-devel] implementation of a dhcp service in proxmox ? 

Can we use the following feature (from 'man DSNMASQ')? 

--dhcp-script=<path> 
Whenever a new DHCP lease is created, or an old one destroyed, 
or a TFTP file transfer completes, the executable specified by 
this option is run. <path> must be an absolute pathname, no 
PATH search occurs. The arguments to the process are "add", 
"old" or "del", the MAC address of the host (or DUID for IPv6) , 
the IP address, and the hostname, if known. "add" means a lease 
has.... 

--leasefile-ro 
Completely suppress use of the lease database file. The file 
will not be created, read, or written. Change the way the lease- 
change script (if one is provided) is called, so that the lease 
database may be maintained in external storage by the script.... 


> dnsmasq also provides DNS (and DHCP) - do we need both? 
> 
> > -----Original Message----- 
> > From: Alexandre DERUMIER [mailto:[email protected]] 
> > Sent: Mittwoch, 22. Mai 2013 11:56 
> > To: Dietmar Maurer 
> > Cc: [email protected]; Michael Rasmussen 
> > Subject: Re: [pve-devel] implementation of a dhcp service in proxmox ? 
> > 
> > I just found this project: 
> > 
> > http://sourceforge.net/p/small-dhcp/code/HEAD/tree/ 
> > 
> > "A small cross-platform DHCP server with a Perl back-end, allowing you 
> > to write Perl scripts to manage your DHCP leases. Requires libnet and 
> > libpcap." 
> > 
> > 
> > 
> > 
> > 
> > ----- Mail original ----- 
> > 
> > De: "Dietmar Maurer" <[email protected]> 
> > À: "Michael Rasmussen" <[email protected]> 
> > Cc: [email protected] 
> > Envoyé: Mercredi 22 Mai 2013 11:22:58 
> > Objet: Re: [pve-devel] implementation of a dhcp service in proxmox ? 
> > 
> > > > I guess that is not possible (at least not easily). 
> > > > 
> > > What exactly is the problem? 
> > 
> > When do you release a lock (think of crashed cluster members, comm 
> > timeouts, ...)? 
> > _______________________________________________ 
> > pve-devel mailing list 
> > [email protected] 
> > http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 
> 
> _______________________________________________ 
> pve-devel mailing list 
> [email protected] 
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 
_______________________________________________
pve-devel mailing list
[email protected]
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to