add local dns option

This commit is contained in:
Alfonso Gamboa 2022-07-22 20:39:53 -07:00
parent b59823b61e
commit 3175ed3d08
7 changed files with 15 additions and 5 deletions

View File

@ -0,0 +1 @@
127.0.0.1 localhost

View File

@ -585,6 +585,12 @@ if [[ "$NIGHT_DROP_DISABLE" == "true" ]]; then
touch /opt/wz_mini/tmp/.nd
fi
if [[ "$ENABLE_LOCAL_DNS" == "true" ]]; then
dnsmasq -C /opt/wz_mini/etc/dnsmasq.conf
rm -f /tmp/resolv.conf
cp /opt/wz_mini/etc/resolv.conf /tmp/resolv.conf
fi
if [[ "$WEB_SERVER_ENABLED" == "true" ]]; then
httpd -p 80 -h /opt/wz_mini/www
fi

View File

@ -0,0 +1 @@
root:x:0:0:root:/opt/wz_mini/root:/bin/sh

View File

@ -0,0 +1 @@
nameserver 127.0.0.1

View File

@ -1,4 +1,4 @@
#List your desired upstream dns servers here
#nameserver 8.8.8.8
#nameserver 8.8.4.4
nameserver 1.1.1.1
nameserver 1.0.0.1

View File

@ -92,9 +92,7 @@ NIGHT_DROP_DISABLE="false"
DISABLE_MOTOR="false"
ENABLE_FSCK_ON_BOOT="false"
ENABLE_CAR_DRIVER="false"
#####WEB#####
WEB_SERVER_ENABLED="false"
ENABLE_LOCAL_DNS="false"
#####DEBUG#####
#drops you to a shell via serial, doesn't load app_init.sh
@ -102,6 +100,8 @@ DEBUG_ENABLED="false"
DEBUG_INITRAMFS_ENABLED="false"
DEBUG_PASSWORD="false"
####WEB####
WEB_SERVER_ENABLED="false"
#####SCRIPTING#####
CUSTOM_SCRIPT_PATH=""

View File

@ -92,6 +92,7 @@ NIGHT_DROP_DISABLE="false"
DISABLE_MOTOR="false"
ENABLE_FSCK_ON_BOOT="false"
ENABLE_CAR_DRIVER="false"
ENABLE_LOCAL_DNS="false"
#####DEBUG#####
#drops you to a shell via serial, doesn't load app_init.sh