summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2022-03-05 18:07:07 +0000
committerSimon Kelley <simon@thekelleys.org.uk>2022-03-05 18:07:07 +0000
commit3ab6dd1c37da3f4ea0e369a1ecdf275697f01ecc (patch)
treec9b03c8bc209e9d65e38b8d43bc2ea01524506c6 /man
parent4458d872899be1c216318856bc4a8a0dd4c2b704 (diff)
downloaddnsmasq-3ab6dd1c37da3f4ea0e369a1ecdf275697f01ecc.tar.gz
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.
Diffstat (limited to 'man')
-rw-r--r--man/dnsmasq.87
1 files changed, 6 insertions, 1 deletions
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=<domain>[,<address range>[,local]]
+.B \-s, --domain=<domain>[[,<address range>[,local]]|<interface>]
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