Unbound: remove hosts logic

This commit is contained in:
Stephan de Wit 2023-03-07 09:38:52 +01:00
parent 1266443673
commit 82306ba6ce
3 changed files with 2 additions and 12 deletions

View File

@ -43,7 +43,6 @@ function unbound_configure()
'bootup' => array('unbound_configure_do'),
'dns' => array('unbound_configure_do'),
'early' => array('unbound_cache_flush'),
'hosts' => array('unbound_hosts_generate:0'),
'local' => array('unbound_configure_do'),
'newwanip' => array('unbound_configure_do:2'),
);
@ -649,15 +648,6 @@ function unbound_acls_config()
file_put_contents('/var/unbound/access_lists.conf', $aclcfg);
}
function unbound_hosts_generate()
{
if (!unbound_enabled()) {
return;
}
unbound_configure_do();
}
function unbound_local_zone_types()
{
return array(

View File

@ -49,7 +49,7 @@ function validate_partial_mac_list($maclist)
function reconfigure_dhcpd()
{
system_resolver_configure();
plugins_configure('hosts');
plugins_configure('dns');
clear_subsystem_dirty('hosts');
dhcpd_dhcp4_configure();
clear_subsystem_dirty('staticmaps');

View File

@ -37,7 +37,7 @@ require_once("plugins.inc.d/dhcpd.inc");
function reconfigure_dhcpd()
{
system_resolver_configure();
plugins_configure('hosts');
plugins_configure('dns');
clear_subsystem_dirty('hosts');
dhcpd_dhcp6_configure();
clear_subsystem_dirty('staticmaps');