From 17360439dc06445f3f2237c315d2af2f0fc61f9b Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Wed, 24 Feb 2021 15:54:36 +0000 Subject: [PATCH] Clarification on dhcp-host and DNS. --- man/dnsmasq.8 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/man/dnsmasq.8 b/man/dnsmasq.8 index ac7c9fa..f787507 100644 --- a/man/dnsmasq.8 +++ b/man/dnsmasq.8 @@ -1045,6 +1045,19 @@ option, but aliases are possible by using CNAMEs. (See .B --cname ). +More than one +.B --dhcp-host +can be associated (by name, hardware address or UID) with a host. Which one is used +(and therefore which address is allocated by DHCP and appears in the DNS) depends +on the subnet on which the host last obtained a DHCP lease: +the +.B --dhcp-host +with an address within the subnet is used. If more than one address is within the subnet, +the result is undefined. A corollary to this is that the name associated with a host using +.B --dhcp-host +does not appear in the DNS until the host obtains a DHCP lease. + + The special keyword "ignore" tells dnsmasq to never offer a DHCP lease to a machine. The machine can be specified by hardware address, client ID or hostname, for