惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog RSS Feed
J
Java Code Geeks
C
Check Point Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Google DeepMind News
Google DeepMind News
阮一峰的网络日志
阮一峰的网络日志
Engineering at Meta
Engineering at Meta
Blog — PlanetScale
Blog — PlanetScale
D
Docker
H
Hackread – Cybersecurity News, Data Breaches, AI and More
月光博客
月光博客
I
InfoQ
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
A
About on SuperTechFans
L
LangChain Blog
腾讯CDC
Y
Y Combinator Blog
MongoDB | Blog
MongoDB | Blog
Vercel News
Vercel News
MyScale Blog
MyScale Blog
博客园 - Franky
IT之家
IT之家
博客园_首页

dnsmasq-discuss

[Dnsmasq-discuss] Announce: dnsmasq-2.92rc2 Re: [Dnsmasq-discuss] [PATCH] Fix arguments order for chaos subdomain check Re: [Dnsmasq-discuss] patch: block-file/allow-file - for review/feedback Re: [Dnsmasq-discuss] patch: block-file/allow-file - for review/feedback Re: [Dnsmasq-discuss] patch: block-file/allow-file - for review/feedback Re: [Dnsmasq-discuss] patch: block-file/allow-file - for review/feedback [Dnsmasq-discuss] patch: block-file/allow-file - for review/feedback Re: [Dnsmasq-discuss] server= with interface parameter changes behavior over time [Dnsmasq-discuss] NFTsets and hosts-files [Dnsmasq-discuss] [PATCH] Allow expired RRSIGs when stale caching is enabled [Dnsmasq-discuss] [PATCH] Fix local host records being overridden by upstream NXDOMAIN [Dnsmasq-discuss] [PATCH] Fix arguments order for chaos subdomain check Re: [Dnsmasq-discuss] Malformed RRSIG Can Crash dnsmasq [Dnsmasq-discuss] Malformed NSEC/NSEC3 Can Hang dnsmasq [Dnsmasq-discuss] Malformed RRSIG Can Crash dnsmasq [Dnsmasq-discuss] Security - IMPORTANT Re: [Dnsmasq-discuss] Issue with circuit-id matching on dhcp requests Re: [Dnsmasq-discuss] Issue with circuit-id matching on dhcp requests Re: [Dnsmasq-discuss] Issue with circuit-id matching on dhcp requests [Dnsmasq-discuss] Issue with circuit-id matching on dhcp requests Re: [Dnsmasq-discuss] [PATCH] bpf.c: fix memory leak in arp_enumerate() on BSD Re: [Dnsmasq-discuss] [PATCH] bpf.c: fix memory leak in arp_enumerate() on BSD Re: [Dnsmasq-discuss] dnssec problem here and now Re: [Dnsmasq-discuss] dnssec problem here and now [Dnsmasq-discuss] dnssec problem here and now Re: [Dnsmasq-discuss] server= with interface parameter changes behavior over time Re: [Dnsmasq-discuss] [PATCH] bpf.c: fix memory leak in arp_enumerate() on BSD Re: [Dnsmasq-discuss] [PATCH] bpf.c: fix memory leak in arp_enumerate() on BSD Re: [Dnsmasq-discuss] [PATCH] Preserve existing log file permissions when adding group-write bit. [Dnsmasq-discuss] server= with interface parameter changes behavior over time
[Dnsmasq-discuss] Portable PXE boot appliance
Steve Cook via Dnsmasq-discuss · 2025-12-19 · via dnsmasq-discuss
Hi,

We're a charity that supports education in sub-Saharan Africa by
refurbishing IT equipment for use in schools.  At our distribution hubs in
Malawi, customised OS images are installed using bootable USBs but we'd
like to do this using PXE boot for performance reasons.

Our goal is to create a bunch of PXE boot appliances to be sent to sites
where we don't necessarily know the subnets in advance.  We'd want these
servers to be 'plug-and-play' capable of serving images via PXE loading on
whatever network they're connected to, and which already have a DHCP server
(e.g. on their broadband router).

We've attempted this using Samba, Nginx, grub, pxelinux and ipxe, all of
which have no fixed IP addresses in any of the configs so it can get its
address from DHCP.  It will boot clients into PXE or WinPE for OS
installation. The appliance can be attached to any subnet and provide
network boot services with no reconfiguration nor interference with
existing network facilities (DHCP). It uses <next-server> and netbios
naming instead. The only place where there is an IP address is DNSmasq's
config. Could the dhcp-range use the computer’s IP address or subnet as a
default?  In other words, could we just specify the network interface(s)
and have it detect the subnet automatically?

# DNSmasq config for proxy PXE boot
# Disable DNS
port=0
log-dhcp
# dhcp-range=interface:eno1,,proxy        # default to interface's subnet -
doesn't work
dhcp-range=interface:eno1,192.168.10.0,proxy        # currently necessary
to specify the subnet
dhcp-range=interface:wlp3s0,192.168.20.0,proxy
no-dhcpv6-interface=eno1
dhcp-no-override
enable-tftp
tftp-root=/srv/boot

dhcp-userclass=set:IPXE,iPXE
pxe-service=tag:IPXE,X86-64_EFI,"ipxe",ipxe/bootuefi.ipxe
pxe-service=tag:!IPXE,X86-64_EFI,"UEFI",grub/grubnetx64.efi
pxe-service=X86PC,"Legacy",pxelinux/lpxelinux.0


Alternatively we could script something that detects the subnet(s) at boot
time and configures DNSmasq before starting it, but it seems neater to
incorporate this feature into DNSmasq itself.

Any guidance or advice on how best to achieve this, is much appreciated!

-- 
Steve Cook
Head of IT
_______________________________________________
Dnsmasq-discuss mailing list
[email protected]
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss