mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
unbound: expand UCI to cover some popular dnsmasq features
Unbound+DHCP (server of your choice) should be able to replicate a lot of what dnsmasq provides. With this change set Unbound still works with dnsmasq, but also it can work with a plain DHCP server. Features have been added within the UCI itself to act like dnsmasq. - alone: name each interface relative to router hostname - alone: prevent upstream leakage of your domain and '.local' - dnsmasq: use dnsmasq UCI to configure forwarding clauses - dhcp: work with odhcpd as example of companion DHCP-DNS - dhcp: convert DHCPv4 leases into EUI64 SLAAC for DNS records - all: enable encrypted remote unbound-control using splice conf - all: allow user spliced conf-files for hybrid UCI and manual conf -- 'unbound_srv.conf' will be spliced into the 'server:' clause -- 'unbound_ext.conf' will add clauses to the end, example 'forward:' README HOW TO for dnsmasq-in-serial, dnsmasq-in-parallel, and unbound-with-odhcpd have better/added UCI starters. HOW TO for including unbound_srv.conf and unbound_ext.conf are added. Document new UCI: add_local_fqdn, add_wan_fqdn, dhcp4_slaac6, dhcp_link, domain, and domain_type Signed-off-by: Eric Luehrsen <ericluehrsen@hotmail.com>
This commit is contained in:
@@ -20,8 +20,10 @@ PROG=/usr/sbin/unbound
|
||||
##############################################################################
|
||||
|
||||
start_service() {
|
||||
unbound_prepare
|
||||
# complex UCI work
|
||||
unbound_start
|
||||
|
||||
# standard procd clause
|
||||
procd_open_instance
|
||||
procd_set_param command $PROG -d -c $UNBOUND_CONFFILE
|
||||
procd_set_param respawn
|
||||
@@ -31,15 +33,13 @@ start_service() {
|
||||
##############################################################################
|
||||
|
||||
stop_service() {
|
||||
rootzone_update
|
||||
unbound_stop
|
||||
}
|
||||
|
||||
##############################################################################
|
||||
|
||||
service_triggers() {
|
||||
procd_add_reload_trigger "dhcp"
|
||||
procd_add_reload_trigger "network"
|
||||
procd_add_reload_trigger "unbound"
|
||||
procd_add_reload_trigger "dhcp" "network" "unbound"
|
||||
}
|
||||
|
||||
##############################################################################
|
||||
|
||||
Reference in New Issue
Block a user