Update and rename 90-DNS_set.sh to 90-dns_set.sh

This commit is contained in:
Alexandre
2021-05-01 21:54:12 +02:00
committed by GitHub
parent 4f9da48075
commit f7ca50b063
2 changed files with 12 additions and 8 deletions

View File

@@ -1,8 +0,0 @@
#!/usr/bin/with-contenv bashio
###############
# DNS SETTING #
###############
printf "nameserver 8.8.8.8 1.1.1.1" > /etc/resolv.conf
chmod 644 /etc/resolv.conf

View File

@@ -0,0 +1,12 @@
#!/usr/bin/with-contenv bashio
###############
# DNS SETTING #
###############
DNS="# Avoid usage of local dns such as adguard home or pihole\n"
DNS="${DNS}nameserver 8.8.8.8\n"
DNS="${DNS}nameserver 1.1.1.1"
printf "${DNS}" > /etc/resolv.conf
chmod 644 /etc/resolv.conf