dnsmasq

# cat /etc/dnsmasq.conf
dhcp-authoritative
server=192.168.1.6

log-facility=/var/log/dnsmasq.log
log-queries

local=/example.com/
domain=example.com

# cat /etc/dnsmasq.conf | grep "^dhcp-host" | awk -v OFS="\t" -F "," '{print $3, $2}' | sort -k2 > /etc/hosts.pre
addn-hosts=/etc/hosts.pre

# DHCP
dhcp-range=192.168.1.150,192.168.1.200,255.255.255.0,1d
dhcp-option=option:router,192.168.1.6
dhcp-option=option:ntp-server,217.7.239.199

# PXE
dhcp-boot=pxelinux.0,srv,192.168.1.9
dhcp-boot=net:sip,http://srv/snom3x0/snom3x0.xml,srv,192.168.1.9
dhcp-boot=net:ts,ltsp/amd64/pxelinux.0,ts,192.168.1.159

# Clients
dhcp-host=00:00:00:00:00:03,www,192.168.1.3
dhcp-host=00:00:00:00:01:70,mx,192.168.1.170

# LTSP
dhcp-host=00:01:02:03:04:11,workstation1,192.168.1.79,net:ts
dhcp-host=00:01:02:03:04:22,workstation2,192.168.1.80,net:ts

# SIP
dhcp-host=00:11:22:33:44:01,juri.sip,192.168.1.210,net:sip

# CNAME
cname=www.example.com,www
cname=mail,mx

#dhcp-host=00:00:00:00:00:03,host1:specialhosts,192.168.1.3
#dhcp-option=tag:specialhosts,option:dns-server,192.168.1.6

expand-hosts
#no-poll
domain-needed
#bogus-priv
#no-resolv

# Gateway
#dhcp-option=tag:gateway1,3,192.168.1.6
#dhcp-option=tag:gateway2,3,192.168.1.253
#dhcp-host=set:gateway1,00:1A:4D:49:80:C2,192.168.1.111,12h
#dhcp-host=set:gateway2,00:1A:4B:6F:C6:65,192.168.1.121,12h

# test
# redirect all ?
address=/#/192.168.2.1

# Links
https://wiki.archlinux.org/index.php/dnsmasq