When there are multiple dhcp-boot in the configuration file, the dnsmasq will send the boot file corresponding to the last matched tag.
Reference: - https://wiki.fogproject.org/wiki/index.php?title=ProxyDHCP_with_dnsmasq
Signed-off-by: Yu Chuan 13186087857@163.com --- container/dnsmasq/dnsmasq.d/dnsmasq.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/container/dnsmasq/dnsmasq.d/dnsmasq.conf b/container/dnsmasq/dnsmasq.d/dnsmasq.conf index df5bc6814e22..6141faf0436b 100644 --- a/container/dnsmasq/dnsmasq.d/dnsmasq.conf +++ b/container/dnsmasq/dnsmasq.d/dnsmasq.conf @@ -22,10 +22,12 @@ dhcp-match=set:pxeclient,60,PXEClient* dhcp-match=set:pxeclient-arm64,93,11 dhcp-match=set:pxeclient-x64,93,7
-dhcp-boot=tag:ipxe,boot.ipxe dhcp-boot=tag:pxeclient-arm64,/tftpboot/ipxe/bin-arm64-efi/snp.efi dhcp-boot=tag:pxeclient-x64,/tftpboot/ipxe/bin-x86_64-efi/snp.efi
+# dhcp-boot of boot.ipxe must be on the last line. +dhcp-boot=tag:ipxe,boot.ipxe + log-queries log-facility=/var/log/dnsmasq/dnsmasq.log # more info: