Add a basic dnsmasq config file

This commit is contained in:
Sam Mesterton-Gibbons 2020-05-11 09:57:47 +01:00
parent 7eefc01eb8
commit c44ae324c9
2 changed files with 32 additions and 0 deletions

View file

@ -2,3 +2,6 @@ FROM linuxserver/netbootxyz:latest
# Install dnsmasq to play DHCP server
RUN apk add --update dnsmasq
# Copy config files for dnsmasq, and running as a service
COPY etc /etc/

29
etc/dnsmasq.conf Normal file
View file

@ -0,0 +1,29 @@
# Don't play DNS server
port=0
# Enable verbose DHCP logging
log-dhcp
# Disable re-use of the DHCP servername and filename fields as extra
# option space. That's to avoid confusing some old or broken DHCP clients.
dhcp-no-override
# Identify the type of PXE client, and set the boot filename accordingly
# Copied from https://github.com/linuxserver/docker-netbootxyz#dd-wrt
dhcp-match=set:bios,60,PXEClient:Arch:00000
dhcp-boot=tag:bios,netboot.xyz.kpxe
dhcp-match=set:efi32,60,PXEClient:Arch:00002
dhcp-boot=tag:efi32,netboot.xyz.efi
dhcp-match=set:efi32-1,60,PXEClient:Arch:00006
dhcp-boot=tag:efi32-1,netboot.xyz.efi
dhcp-match=set:efi64,60,PXEClient:Arch:00007
dhcp-boot=tag:efi64,netboot.xyz.efi
dhcp-match=set:efi64-1,60,PXEClient:Arch:00008
dhcp-boot=tag:efi64-1,netboot.xyz.efi
dhcp-match=set:efi64-2,60,PXEClient:Arch:00009
dhcp-boot=tag:efi64-2,netboot.xyz.efi
# Boot the relevant PXE image
pxe-service=x86PC,"Run netboot.xyz, BIOS mode",netboot.xyz.kpxe
pxe-service=X86-64_EFI, "Run netboot.xyz, UEFI mode", netboot.xyz.efi
pxe-service=BC_EFI, "Run netboot.xyz, UEFI mode", netboot.xyz.efi