dns proxy
This commit is contained in:
@@ -4,6 +4,8 @@ LOGS=${LOGS:-false}
|
||||
LOGDIR=${LOGDIR:-/logs}
|
||||
PORT=${PORT:-1053}
|
||||
VERBOSITY=${VERBOSITY:-1}
|
||||
DNSPROXY=${DNSPROXY:-false}
|
||||
ACCESSLOG=${ACCESSLOG:-true}
|
||||
|
||||
# set logs
|
||||
if [ "${LOGS}" = true ] ; then
|
||||
@@ -35,5 +37,11 @@ server:
|
||||
port: ${PORT}
|
||||
EOF
|
||||
|
||||
if [ "${DNSPROXY}" = true ] ; then
|
||||
export DNS_SERVER=127.0.0.1
|
||||
export DNS_PORT="${PORT}"
|
||||
/app/dnsproxy &
|
||||
fi
|
||||
|
||||
# start unbound
|
||||
/usr/sbin/unbound -d
|
||||
|
||||
Reference in New Issue
Block a user