Hi Guys,

 

I deploy a dnsmasq with
“dhcp-range=2234:aabb:ccff:ffe::2,2234:aabb:ccff:ffe:0:ff:ffff:ffff,static,
120,24h”, I hope that dnsmasq will reply success ONLY when the [mac, ip]
match the binding in dhcp-hostfle.

But dnsmasq will reply success when it received a dhcp confirmation with
[mac, ip] not in dhcp-hostfle.

Do you have any idea how to achive this? 

Thanks in advance.

here is the the conf file:

# ps -aux | grep dns
nobody 16473 0.0 0.0 15604 980 ? S 11:33 0:00 /usr/sbin/dnsmasq
--conf-file=/var/lib/dnsmasq/dnsmasq.conf
# cat /var/lib/dnsmasq/dnsmasq.conf
domain-needed
bogus-priv
no-hosts
dhcp-option=vendor:MSFT,2,1i
dhcp-lease-max=65535
dhcp-hostsfile=/var/lib/dnsmasq/hosts.dhcp
interface=inner3
except-interface=lo
bind-interfaces
leasefile-ro
dhcp-range=2234:aabb:ccff:ffe::2,2234:aabb:ccff:ffe:0:ff:ffff:ffff,static,88
,24h
# cat /var/lib/dnsmasq/hosts.dhcp
fa:a5:bd:b2:1f:00,set:faa5bdb21f00,[2234:aabb:ccff:ffe::43:5b58],2234-aabb-c
cff-ffe--43-5b58,infinite

 

>From the manpage of dnsmasq:

"The optional keyword may be static which tells dnsmasq to enable DHCP for
the network specified, but not to dynamically allocate IP addresses: only
hosts which have static addresses given via --dhcp-host or from /etc/ethers
will be served."
 <http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html>
http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html

 

 

_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

Reply via email to