## Purpose This document was written to provide instructions for setting up a FOG Project server behind a Pi-Hole that has DHCP configured on it. Start by connecting to the Pi-Hole's CLI either via SSH or Portainer/Docker Interactive CLI and create the following file: ### Configure PXE Records ```ini title="/etc/dnsmasq.d/99-pxe.conf" # Detect if client is already using iPXE dhcp-userclass=set:ipxe,iPXE # If already in iPXE → send to FOG menu dhcp-boot=tag:ipxe,http://192.168.3.9/fog/service/ipxe/boot.php # Detect UEFI x64 clients dhcp-match=set:efi-x86_64,option:client-arch,7 # First-stage boot loaders dhcp-boot=tag:efi-x86_64,snponly.efi,,192.168.3.9 dhcp-boot=undionly.kpxe,,192.168.3.9 ``` ### Reload Pi-Hole DNS ```sh pihole reloaddns ```