mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Merge pull request #2075 from everettsouthwick/development
Add support for public Cloudflare DNS servers.
This commit is contained in:
commit
1200a77b22
1 changed files with 6 additions and 0 deletions
|
@ -772,6 +772,7 @@ setDNS() {
|
||||||
DNSWatch ""
|
DNSWatch ""
|
||||||
Quad9 ""
|
Quad9 ""
|
||||||
FamilyShield ""
|
FamilyShield ""
|
||||||
|
Cloudflare ""
|
||||||
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} 7 \
|
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_1="208.67.222.123"
|
||||||
PIHOLE_DNS_2="208.67.220.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)
|
Custom)
|
||||||
# Until the DNS settings are selected,
|
# Until the DNS settings are selected,
|
||||||
until [[ "${DNSSettingsCorrect}" = True ]]; do
|
until [[ "${DNSSettingsCorrect}" = True ]]; do
|
||||||
|
|
Loading…
Reference in a new issue