Example ======= dnsmasq::config { 'mio': dhcp_authoritative => 'yes', dhcp_range => '10.11.12.150,10.11.12.200,255.255.255.0,2h', dhcp_gw => '10.11.12.1', dhcp_nameservers => '10.11.12.1', dhcp_script => '/usr/local/sbin/dnsmasq-genhostname.sh', dhcp_hostsfile => '/etc/dnsmasq.hostsfile', addn_hosts => '/etc/hosts.dnsmasq', domain => 'mon.domaine.exemple.com', dhcp_boot => 'pxelinux.0,tftphostname,10.11.12.8', tftp_root => '/ltsp/i386/', log_queries => 'yes', log_dhcp => 'yes' } Notes ======== * to desactivate any parameter replace the value by 'absent' * We've a cool script that generate the hostname base on the mac address of the host, requesting a ip. The generate name looks like this PC001d60dec327 This is very useful when installing new hosts with the automated Debian preseed method. * To assign static ip, once the mac address of the targeted host has appeared in the /etc/dnsmasq.hostsfile, you can go ahead and change the hostname and add the ip after hostname in this file.