summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2023-03-06 13:06:03 +0000
committerSimon Kelley <simon@thekelleys.org.uk>2023-03-06 13:06:03 +0000
commit7d6b68c5d7016aca5372f12e9f0c25f0a108644d (patch)
tree6ee6712673a83ff7f46a4290be58abd6c6444c7d
parent137ae2e9cf0dc3596641e7c8b91d15307a35319e (diff)
downloaddnsmasq-7d6b68c5d7016aca5372f12e9f0c25f0a108644d.tar.gz
Document suppressing deafult options in --dhcp-option.
-rw-r--r--man/dnsmasq.810
1 files changed, 9 insertions, 1 deletions
diff --git a/man/dnsmasq.8 b/man/dnsmasq.8
index 3d1d96a..41e2e04 100644
--- a/man/dnsmasq.8
+++ b/man/dnsmasq.8
@@ -1297,7 +1297,15 @@ and to set the time-server address to 192.168.0.4, do
or
.B --dhcp-option = option:ntp-server, 192.168.0.4
The special address 0.0.0.0 is taken to mean "the address of the
-machine running dnsmasq".
+machine running dnsmasq".
+
+An option without data is valid, and includes just the option without data.
+(There is only one option with a zero length data field currently defined for DHCPv4, 80:rapid commit, so this feature is not very useful in practice). Options for which dnsmasq normally
+provides default values can be ommitted by defining the option with no data. These are
+netmask, broadcast, router, DNS server, domainname and hostname. Thus, for DHCPv4
+.B --dhcp-option = option:router
+will result in no router option being sent, rather than the default of the host on which dnsmasq is running. For DHCPv6, the same is true of the options DNS server and refresh time.
+
Data types allowed are comma separated
dotted-quad IPv4 addresses, []-wrapped IPv6 addresses, a decimal number, colon-separated hex digits