Skip to content
Snippets Groups Projects
Commit 132cbe5e authored by Steven Barth's avatar Steven Barth
Browse files

dnsmasq: add UCI DNSSEC runtime support


Ship keys for the root zone and add two uci options to enable
DNSSEC checks:

Option 'dnssec': Activate DNSSEC validation
Option 'dnsseccheckunsigned': Ensure answers without DNSSEC are in
unsigned zones.

Signed-off-by: default avatarAndre Heider <a.heider@gmail.com>

SVN-Revision: 41245
parent 5f64a3e7
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,7 @@ ADD_LOCAL_HOSTNAME=1 ...@@ -14,6 +14,7 @@ ADD_LOCAL_HOSTNAME=1
CONFIGFILE="/var/etc/dnsmasq.conf" CONFIGFILE="/var/etc/dnsmasq.conf"
HOSTFILE="/tmp/hosts/dhcp" HOSTFILE="/tmp/hosts/dhcp"
TRUSTANCHORSFILE="/usr/share/dnsmasq/trust-anchors.conf"
xappend() { xappend() {
local value="$1" local value="$1"
...@@ -186,6 +187,13 @@ dnsmasq() { ...@@ -186,6 +187,13 @@ dnsmasq() {
config_list_foreach "$cfg" rebind_domain append_rebind_domain config_list_foreach "$cfg" rebind_domain append_rebind_domain
} }
config_get dnssec "$cfg" dnssec
[ "$dnssec" -gt 0 ] && {
xappend "--conf-file=$TRUSTANCHORSFILE"
xappend "--dnssec"
append_bool "$cfg" dnsseccheckunsigned "--dnssec-check-unsigned"
}
dhcp_option_add "$cfg" "" 0 dhcp_option_add "$cfg" "" 0
xappend "--dhcp-broadcast=tag:needs-broadcast" xappend "--dhcp-broadcast=tag:needs-broadcast"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment