> 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. On Sun, Oct 27, 2024 at 7:56 PM Geert Stappers <stapp...@stappers.nl> wrote: > > On Sun, Oct 20, 2024 at 04:00:06AM +0800, Glen Huang 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. > > > > > Here is my full config: > > > > > > bind-dynamic > > > bogus-priv > > > dhcp-authoritative > > > dhcp-fqdn > > > dhcp-host=example,[::10],192.168.1.10 > > > dhcp-leasefile=/var/lib/dnsmasq/dnsmasq.leases > > > dhcp-option=option:dns-server,0.0.0.0 > > > dhcp-option=option:domain-search,lan > > > dhcp-option=option6:dns-server,[fd00::] > > > dhcp-option=option6:domain-search,lan > > > dhcp-range=192.168.1.100,192.168.1.250,12h > > > dhcp-range=::100,::196,constructor:lan,slaac,7d > > > domain=lan > > > domain-needed > > > expand-hosts > > > local=/lan/ > > > localise-queries > > > no-dhcp-interface=wan > > > no-resolv > > > port=1053 > > > rebind-localhost-ok > > > server=8.8.8.8 > > > stop-dns-rebind > > > > Forgot to mention, I use dnsmasq 2.90 on linux. > > > > > Groeten > Geert Stappers > -- > 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 _______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss