1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 14:58:08 +00:00

Add support for public Cloudflare DNS servers.

Signed-off-by: Everett Southwick <everett@everettsouthwick.com>
This commit is contained in:
Everett Southwick 2018-04-01 17:59:08 -05:00
parent 971e6f2664
commit a8b493cb7d

View File

@ -772,6 +772,7 @@ setDNS() {
DNSWatch ""
Quad9 ""
FamilyShield ""
Cloudflare ""
Custom "")
# In a whiptail dialog, show the options
DNSchoices=$(whiptail --separate-output --menu "Select Upstream DNS Provider. To use your own, select Custom." ${r} ${c} 7 \
@ -823,6 +824,11 @@ setDNS() {
PIHOLE_DNS_1="208.67.222.123"
PIHOLE_DNS_2="208.67.220.123"
;;
Cloudflare)
echo "Cloudflare servers"
PIHOLE_DNS_1="1.1.1.1"
PIHOLE_DNS_2="1.0.0.1"
;;
Custom)
# Until the DNS settings are selected,
until [[ "${DNSSettingsCorrect}" = True ]]; do