mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
dnsmasq: fix initskript
-add timestamp filename -pull user config after define default parameter
This commit is contained in:
committed by
Michael Tremer
parent
b525629a46
commit
d2dabe5eba
@@ -15,18 +15,19 @@
|
|||||||
. /etc/sysconfig/rc
|
. /etc/sysconfig/rc
|
||||||
. ${rc_functions}
|
. ${rc_functions}
|
||||||
|
|
||||||
|
CACHE_SIZE=2500
|
||||||
|
ENABLE_DNSSEC=1
|
||||||
|
SHOW_SRV=1
|
||||||
|
TRUST_ANCHOR=".,19036,8,2,49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5"
|
||||||
|
TIMESTAMP_FILE="/var/ipfire/dns/dnssec-timestamp"
|
||||||
|
|
||||||
# Pull custom configuration file
|
# Pull custom configuration file
|
||||||
if [ -e "/etc/sysconfig/dnsmasq" ]; then
|
if [ -e "/etc/sysconfig/dnsmasq" ]; then
|
||||||
. /etc/sysconfig/dnsmasq
|
. /etc/sysconfig/dnsmasq
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CACHE_SIZE=2500
|
|
||||||
ENABLE_DNSSEC=1
|
|
||||||
SHOW_SRV=1
|
|
||||||
TRUST_ANCHOR=".,19036,8,2,49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5"
|
|
||||||
|
|
||||||
function dnssec_args() {
|
function dnssec_args() {
|
||||||
local cmdline="--dnssec --dnssec-timestamp"
|
local cmdline="--dnssec --dnssec-timestamp ${TIMESTAMP_FILE}"
|
||||||
|
|
||||||
if [ -n "${TRUST_ANCHOR}" ]; then
|
if [ -n "${TRUST_ANCHOR}" ]; then
|
||||||
cmdline="${cmdline} --trust-anchor=${TRUST_ANCHOR}"
|
cmdline="${cmdline} --trust-anchor=${TRUST_ANCHOR}"
|
||||||
|
|||||||
Reference in New Issue
Block a user