system: users might miss this so put it back

rc.resolv_conf_generate like most rc.* scripting magic should
eventually go way.
This commit is contained in:
Franco Fichtner 2022-08-31 09:02:35 +02:00
parent 683747ddb3
commit c1ff59ea02
2 changed files with 10 additions and 3 deletions

View File

@ -475,9 +475,10 @@ function core_xmlrpc_sync()
function core_configure()
{
return array(
'user_changed' => array('core_user_changed_groups:2'),
);
return [
'dns_reload' => ['system_resolvconf_generate', 'system_hosts_generate'],
'user_changed' => ['core_user_changed_groups:2'],
];
}
/**

View File

@ -1,3 +1,9 @@
[reload]
command:/usr/local/sbin/pluginctl -c dns_reload
parameters:
type:script_output
message:rewriting /etc/resolv.conf and /etc/hosts
[query]
command:/usr/local/opnsense/scripts/dns/query_dns.py
parameters: --server %s %s