On Mon, Nov 11, 2024 at 04:19:18PM +0800, Glen Huang wrote: > On Sun, Oct 27, 2024 at 7:56 PM Geert Stappers wrote: > > On Sun, Oct 20, 2024 at 3:50 AM Glen Huang wrote: > > > > > > I have this flag set > > > > > > dhcp-host=example,[::10],192.168.1.10 > > > > > > and my machine correctly gets 192.168.1.10 for ipv4, but gets a random > > > ipv6 address from the dhcp-range flag. Seems the ipv6 in dhcp-host is > > > simply ignored. Any idea why that could happen? > > > > What **should** happen: Check dnsmasq manual page for dhcp-host syntax. > > > > I did read the manual before writing this rule: > > "It is also allowable to omit the hardware address and include the > hostname, in which case the IP address and lease times will apply to > any machine claiming that name." > > " IPv6 addresses may contain only the host-identifier part: > --dhcp-host=laptop,[::56] in which case they act as wildcards in > constructed DHCP ranges, with the appropriate network part inserted." > > And since my machine can get IPv4, it looks like the rule is accepted > by dnsmasq, but only working partially. >
Manual page --dhcp-host=[<hwaddr>][,id:<client_id>|*][,set:<tag>][tag:<tag>][,<ipaddr>][,<host‐name>][,<lease_time>][,ignore] note that there is only one "ipaddr" and in > > > dhcp-host=example,[::10],192.168.1.10 are two IP address, an IPv4 and an IPv6. Groeten Geert Stappers P.S. Make reading in the discussion order possible, reply below previous text. -- Silence is hard to parse _______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss