dns proxy
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
2025-03-24 14:40:12 +01:00
parent 1600112965
commit 045c1b1904
7 changed files with 288 additions and 0 deletions

View File

@@ -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