dnsmasq: stop exposing regdhcpdomain to static entries

Unbound doesn't do it either.  Eventually we want to get rid of
it completely.  For now Dnsmasq doesn't support reading DHCP
ranges to match the correct domain for dynamic leases.
This commit is contained in:
Franco Fichtner 2024-05-17 10:42:28 +02:00
parent 1c8639c338
commit e126d432d6

View File

@ -253,12 +253,7 @@ function _dnsmasq_add_host_entries()
}
if (isset($dnsmasqcfg['regdhcpstatic'])) {
$domain = $config['system']['domain'];
if (!empty($config['dnsmasq']['regdhcpdomain'])) {
$domain = $config['dnsmasq']['regdhcpdomain'];
}
foreach (plugins_run('static_mapping', [null, true, $domain, legacy_interfaces_details()]) as $map) {
foreach (plugins_run('static_mapping', [null, true, $config['system']['domain'], legacy_interfaces_details()]) as $map) {
foreach ($map as $host) {
if (empty($host['hostname'])) {
/* cannot register without a hostname */