-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathservices.inc.patch
43 lines (38 loc) · 1.59 KB
/
services.inc.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
--- ./services.inc 2024-04-11 17:16:28.229875000 +0200
+++ /etc/inc/services.inc 2024-04-11 17:29:36.642086000 +0200
@@ -566,9 +566,20 @@
'library' => '/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so',
];
+ // Set script hook for passing leases to unbound-control local-zone
+ $kea_run_script_hook = [
+ 'library' => '/usr/local/lib/kea/hooks/libdhcp_run_script.so',
+ 'parameters' => [
+ 'name' => '/root/kea-lease-unbound-control.sh',
+ 'sync' => false
+ ]
+ ];
+
/* wire up lease_cmds hook */
$keaconf['Dhcp6']['hooks-libraries'][] = $kea_lease_cmds_hook;
+ $keaconf['Dhcp6']['hooks-libraries'][] = $kea_run_script_hook;
+
$dhcpdv6ifs = array();
// $dhcpv6num = 0;
@@ -1117,8 +1128,19 @@
'library' => '/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so',
];
+ // Set script hook for passing leases to unbound-control local-zone
+ $kea_run_script_hook = [
+ 'library' => '/usr/local/lib/kea/hooks/libdhcp_run_script.so',
+ 'parameters' => [
+ 'name' => '/root/kea-lease-unbound-control.sh',
+ 'sync' => false
+ ]
+ ];
+
/* wire up lease_cmds hook */
$keaconf['Dhcp4']['hooks-libraries'][] = $kea_lease_cmds_hook;
+
+ $keaconf['Dhcp4']['hooks-libraries'][] = $kea_run_script_hook;
/* Only consider DNS servers with IPv4 addresses for the IPv4 DHCP server. */
$dns_arrv4 = array();