mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-03 12:40:56 +00:00
Merge pull request #1774 from mterron/patch-1
Add support for Quad9 secure dns server
This commit is contained in:
commit
1556163fb0
@ -764,9 +764,10 @@ setDNS() {
|
|||||||
Norton ""
|
Norton ""
|
||||||
Comodo ""
|
Comodo ""
|
||||||
DNSWatch ""
|
DNSWatch ""
|
||||||
|
Quad9 ""
|
||||||
Custom "")
|
Custom "")
|
||||||
# In a whiptail dialog, show the options
|
# In a whiptail dialog, show the options
|
||||||
DNSchoices=$(whiptail --separate-output --menu "Select Upstream DNS Provider. To use your own, select Custom." ${r} ${c} 6 \
|
DNSchoices=$(whiptail --separate-output --menu "Select Upstream DNS Provider. To use your own, select Custom." ${r} ${c} 7 \
|
||||||
"${DNSChooseOptions[@]}" 2>&1 >/dev/tty) || \
|
"${DNSChooseOptions[@]}" 2>&1 >/dev/tty) || \
|
||||||
# exit if Cancel is selected
|
# exit if Cancel is selected
|
||||||
{ echo -e " ${COL_LIGHT_RED}Cancel was selected, exiting installer${COL_NC}"; exit 1; }
|
{ echo -e " ${COL_LIGHT_RED}Cancel was selected, exiting installer${COL_NC}"; exit 1; }
|
||||||
@ -805,6 +806,10 @@ setDNS() {
|
|||||||
PIHOLE_DNS_1="84.200.69.80"
|
PIHOLE_DNS_1="84.200.69.80"
|
||||||
PIHOLE_DNS_2="84.200.70.40"
|
PIHOLE_DNS_2="84.200.70.40"
|
||||||
;;
|
;;
|
||||||
|
Quad9)
|
||||||
|
echo "Quad9 servers"
|
||||||
|
PIHOLE_DNS_1="9.9.9.9"
|
||||||
|
;;
|
||||||
Custom)
|
Custom)
|
||||||
# Until the DNS settings are selected,
|
# Until the DNS settings are selected,
|
||||||
until [[ "${DNSSettingsCorrect}" = True ]]; do
|
until [[ "${DNSSettingsCorrect}" = True ]]; do
|
||||||
|
Loading…
Reference in New Issue
Block a user