From 3ab6dd1c37da3f4ea0e369a1ecdf275697f01ecc Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Sat, 5 Mar 2022 18:07:07 +0000 Subject: Enhance --domain to accept, interface names for the address range. This allows hosts get a domain which relects the interface they are attached to in a way which doesn't require hard-coding addresses. Thanks to Sten Spans for the idea. --- man/dnsmasq.8 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'man') diff --git a/man/dnsmasq.8 b/man/dnsmasq.8 index ca155f0..f68a286 100644 --- a/man/dnsmasq.8 +++ b/man/dnsmasq.8 @@ -1935,7 +1935,7 @@ is the address of the relay and the second, as before, specifies an extra subnet addresses may be allocated from. .TP -.B \-s, --domain=[,
[,local]] +.B \-s, --domain=[[,
[,local]]|] Specifies DNS domains for the DHCP server. Domains may be be given unconditionally (without the IP range) or for limited IP ranges. This has two effects; firstly it causes the DHCP server to return the domain to any hosts @@ -1969,6 +1969,11 @@ additional flag "local" may be supplied which has the effect of adding is identical to .B --domain=thekelleys.org.uk,192.168.0.0/24 .B --local=/thekelleys.org.uk/ --local=/0.168.192.in-addr.arpa/ + +The address range can also be given as a network interface name, in which case +all of the subnets currently assigned to the interface are used in matching the +address. This allows hosts on different physical subnets to be given different +domains in a way which updates automatically as the interface addresses change. .TP .B --dhcp-fqdn In the default mode, dnsmasq inserts the unqualified names of -- cgit v1.2.1