I followed this guide to setup DNS Over HTTPS. Seems to be working, but when I check using these links if DNS over HTTPS is enabled. It doesn't look so.
https://www.cloudflare.com/ssl/encrypted-sni/
Secure DNS = Question mark
DNSSEC = Red X
TLS 1.3 = Green check
Encrypted SNI =Red X.
Debug Information:
Connected to 1.1.1.1 No
Using DNS over HTTPS (DoH) No
Using DNS over TLS (DoT) No
Using DNS over WARP No
AS Name OpenDNS, LLC
AS Number 36692
Cloudflare Data Center NRT
In the pihole admin page, I have enabled the Upstream DNS Server, and the line below in he custom 1 tab and clicked on save.
127.0.0.1#5053
Testing locally with dig.
dig @127.0.0.1 -p 5053 google.com
; <<>> DiG 9.10.3-P4-Raspbian <<>> @127.0.0.1 -p 5053 google.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21589
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1452
; OPT=12: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 (".....................................................................")
;; QUESTION SECTION:
;google.com. IN A
;; ANSWER SECTION:
google.com. 65 IN A 216.58.197.142
;; Query time: 263 msec
;; SERVER: 127.0.0.1#5053(127.0.0.1)
;; WHEN: Tue Dec 17 11:29:45 JST 2019
;; MSG SIZE rcvd: 138