# Example dnsmasq config for AlmaLinux PXE on server1. # Adjust interface names, addresses, and file paths before use. interface=enp2s0 bind-interfaces domain-needed bogus-priv log-dhcp # DHCP range for PXE clients dhcp-range=192.168.50.100,192.168.50.150,255.255.255.0,12h dhcp-option=option:dns-server,192.168.50.1 # Set a fixed lease for a known PXE target if desired. # dhcp-host=52:54:00:12:34:56,server2,192.168.50.20 enable-tftp tftp-root=/var/lib/tftpboot # Detect firmware type. BIOS clients use PXELINUX; UEFI clients use GRUB EFI. dhcp-match=set:bios,option:client-arch,0 dhcp-match=set:efi64,option:client-arch,7 dhcp-match=set:efi64,option:client-arch,9 dhcp-boot=tag:bios,pxelinux.0 dhcp-boot=tag:efi64,EFI/BOOT/BOOTX64.EFI # If server1 is not the DHCP server, convert this to proxy-DHCP mode instead. # dhcp-range=192.168.50.0,proxy,255.255.255.0