# dnsmasq.conf

no-daemon
domain=talos.dev
dhcp-range=172.28.1.50,172.28.1.99
dhcp-option=3,172.28.0.1
dhcp-host=52:54:00:a1:9c:ae,172.28.1.10,control-plane-1,1h
dhcp-host=52:54:00:b2:2f:86,172.28.1.11,control-plane-2,1h
dhcp-host=52:54:00:c3:61:77,172.28.1.12,control-plane-3,1h
dhcp-host=52:54:00:d7:99:c7,172.28.1.13,worker-1,1h

enable-tftp
tftp-root=/var/lib/tftpboot

# Legacy PXE
dhcp-match=set:bios,option:client-arch,0
dhcp-boot=tag:bios,undionly.kpxe

# UEFI
dhcp-match=set:efi32,option:client-arch,6
dhcp-boot=tag:efi32,ipxe.efi

dhcp-match=set:efibc,option:client-arch,7
dhcp-boot=tag:efibc,ipxe.efi

dhcp-match=set:efi64,option:client-arch,9
dhcp-boot=tag:efi64,ipxe.efi

# iPXE
dhcp-userclass=set:ipxe,iPXE
dhcp-boot=tag:ipxe,http://matchbox.talos.dev:8080/boot.ipxe

log-queries
log-dhcp

address=/matchbox.talos.dev/172.28.1.2
address=/kubernetes.talos.dev/172.28.1.3
address=/control-plane-1.talos.dev/172.28.1.10
address=/control-plane-2.talos.dev/172.28.1.11
address=/control-plane-3.talos.dev/172.28.1.12
address=/worker-1.talos.dev/172.28.1.13
