1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-01-09 15:40:54 +00:00

Merge branch 'development' of https://github.com/slamanna212/pi-hole into slamanna212-development

This commit is contained in:
Promofaux 2016-02-16 22:22:59 +00:00
commit 73e13f3875

View File

@ -300,9 +300,12 @@ setStaticIPv4() {
} }
setDNS(){ setDNS(){
DNSChoseCmd=(whiptail --separate-output --radiolist "Select Upstream DNS Provider" $r $c 2) DNSChoseCmd=(whiptail --separate-output --radiolist "Select Upstream DNS Provider" $r $c 5)
DNSChooseOptions=(Google "" on DNSChooseOptions=(Google "" on
OpenDNS "" off) OpenDNS "" off
Level3 "" off
Norton "" off
Comodo "" off)
DNSchoices=$("${DNSChoseCmd[@]}" "${DNSChooseOptions[@]}" 2>&1 >/dev/tty) DNSchoices=$("${DNSChoseCmd[@]}" "${DNSChooseOptions[@]}" 2>&1 >/dev/tty)
if [[ $? = 0 ]];then if [[ $? = 0 ]];then
case $DNSchoices in case $DNSchoices in
@ -316,6 +319,21 @@ setDNS(){
piholeDNS1="208.67.222.222" piholeDNS1="208.67.222.222"
piholeDNS2="208.67.220.220" piholeDNS2="208.67.220.220"
;; ;;
Level3)
echo "::: Using Level3 servers."
piholeDNS1="4.2.2.1"
piholeDNS2="4.2.2.2"
;;
Norton)
echo "::: Using Norton ConnectSafe servers."
piholeDNS1="199.85.126.10"
piholeDNS2="199.85.127.10"
;;
Comodo)
echo "::: Using Comodo Secure servers."
piholeDNS1="8.26.56.26"
piholeDNS2="8.20.247.20"
;;
esac esac
else else
echo "::: Cancel selected. Exiting..." echo "::: Cancel selected. Exiting..."
@ -387,7 +405,7 @@ stopServices() {
# Stop dnsmasq and lighttpd # Stop dnsmasq and lighttpd
$SUDO echo ":::" $SUDO echo ":::"
$SUDO echo -n "::: Stopping services..." $SUDO echo -n "::: Stopping services..."
$SUDO service dnsmasq stop & spinner $! || true #$SUDO service dnsmasq stop & spinner $! || true
$SUDO service lighttpd stop & spinner $! || true $SUDO service lighttpd stop & spinner $! || true
$SUDO echo " done." $SUDO echo " done."
} }
@ -601,7 +619,7 @@ displayFinalMessage
echo -n "::: Restarting services..." echo -n "::: Restarting services..."
# Start services # Start services
$SUDO service dnsmasq start $SUDO service dnsmasq restart
$SUDO service lighttpd start $SUDO service lighttpd start
echo " done." echo " done."