TechnitiumSoftware / DnsServer

Technitium DNS Server
https://technitium.com/dns/
GNU General Public License v3.0
3.84k stars 400 forks source link

[Feature Request] Allow to exclude specific class from DHCP Pool #830

Open Sulquendi opened 5 months ago

Sulquendi commented 5 months ago

Hello, first thanks for your awesome work !

Explanation of this feature request : to allow Orange TV Decoder to work properly, it has to be handled by the ISP box DHCP server. It is easy to create a static DHCP record in the ISP Box, but then the Technitium DHCP service should allow to exclude the device.

In example, with isc.dhcp.server, it is possible to do this in dhcpd.conf :

1- Declare a custom class to match the mac addr of the specific device you want to exclude

class "orange" {
  # exclude orange decoder from pool! Ie. 30:24:78:8d:00:98/30:24:78:8d:00:9a
  match if substring (hardware,1,4) = 30:24:78:8d;
}

2- then in the pool config :

subnet 192.168.0.0 netmask 255.255.255.0 {
  #...
  pool {
    range 192.168.0.24 192.168.0.63;
    allow unknown-clients;
    deny members of "orange";
  }
}

Regards

ShreyasZare commented 5 months ago

Thanks for the feature request. Will get that implemented when DHCP changes are planned.