[Dnsmasq-discuss] dhcp-host ipv6 not get assigned yet ipv4 does

Geert Stappers stappers at stappers.nl
Sun Oct 27 11:40:26 UTC 2024


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



More information about the Dnsmasq-discuss mailing list