$ dig @1.1.1.1 google.com
; <<>> DiG 9.11.5-P4-5.1+deb10u1-Raspbian <<>> @1.1.1.1 google.com
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached
$ dig @1.0.0.1 google.com
; <<>> DiG 9.11.5-P4-5.1+deb10u1-Raspbian <<>> @1.0.0.1 google.com
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached; <<>> DiG 9.11.20-RedHat-9.11.20-1.fc32 <<>> @1.1.1.1 google.com ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39428 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 1232 ;; QUESTION SECTION: ;google.com. IN A
;; ANSWER SECTION: google.com. 249 IN A 216.58.206.174
;; Query time: 9 msec ;; SERVER: 1.1.1.1#53(1.1.1.1) ;; WHEN: Sat Jul 18 00:38:35 +03 2020 ;; MSG SIZE rcvd: 65
Even when the secondary works the performance is pretty miserable. Adds about a 1s latency to each DNS resolution while it wait's for the primary to fail.
It took me three minutes to isolate my problem to them. I just added some non-Cloudflare DNS servers to my resolver. It's easy to look at the incredible redundancy that's built-in to their system and be confident, but adding a higher layer of redundancy to an already redundant system is never a bad idea.
2. Cloudflare supports DoH
Some ISPs I think hijack all DNS requests irrespective of the destination and point it to their own. Sky used to do this from what I read.
Setup DNSCryptProxy is my suggestion and let it pick the best/fastest/closest DNS over HTTPs resolver.
After the outage, 1.1.1.1 is also about 3ms.
; <<>> DiG 9.10.6 <<>> +trace boards.4chan.org
;; global options: +cmd
. 85596 IN NS f.root-servers.net.
. 85596 IN NS b.root-servers.net.
. 85596 IN NS k.root-servers.net.
. 85596 IN NS i.root-servers.net.
. 85596 IN NS l.root-servers.net.
. 85596 IN NS d.root-servers.net.
. 85596 IN NS c.root-servers.net.
. 85596 IN NS m.root-servers.net.
. 85596 IN NS j.root-servers.net.
. 85596 IN NS h.root-servers.net.
. 85596 IN NS a.root-servers.net.
. 85596 IN NS e.root-servers.net.
. 85596 IN NS g.root-servers.net.
. 85596 IN RRSIG NS 8 0 518400 20200730200000 20200717190000 46594 . XHNID5n3ki/LmJxN+XGoIrGMzylmRWBBubInleBI5RBeCTExgAmM4Obw FKtCW970Ured+UFYauKv/l574dMGsv03Jg6/1RAApSZU7GFVsWfffmc9 DRDGijEY6THNV65usIA8rryMSWN0aFqyRxwl3gBQKdglSq6GYm55Pe3T HW9vgHNUJ9ecQOaO3w848VKz7Pznsdw/A+cxCbaBrm1DlvPeaWJPUBIP Xt4ABZaWFQTe/yDK/ZpL1pt1A1iMbZvSpo24Dg1gRCI46N39ZTcYnFf7 48WgcrFCrjA0ay0lKvjGd1Mckgb8ikG2pe+O/FFWVpNuSHuylY8cDEqg gX7ogQ==
;; Received 525 bytes from 192.168.1.254#53(192.168.1.254) in 10 ms
org. 172800 IN NS a0.org.afilias-nst.info.
org. 172800 IN NS a2.org.afilias-nst.info.
org. 172800 IN NS b0.org.afilias-nst.org.
org. 172800 IN NS b2.org.afilias-nst.org.
org. 172800 IN NS c0.org.afilias-nst.info.
org. 172800 IN NS d0.org.afilias-nst.org.
org. 86400 IN DS 17883 7 1 38C5CF93B369C7557E0515FAAA57060F1BFB12C1
org. 86400 IN DS 17883 7 2 D889CAD790F01979E860D6627B58F85AB554E0E491FE06515F35548D 1EB4E6EE
org. 86400 IN RRSIG DS 8 1 86400 20200730200000 20200717190000 46594 . buDGmVukWJCS28Ty/Ka/0Qe7Y+ChPRLNRfRNJDim2wPJXxSQR1Ic94pB +YcIZLK9M5jUIZel5aDKwOPdZEZktoWyxkI9993NFPyb9IMo0r4ISQfi PgeiBN8AOB2hjQ1y6owQFVhWQgdURd8yImHrU2seMd5kmYZkoJOL8Xt2 2L+QUxNfcIu5lNbyepaH7G8qkxyiLyWL/dDWNrknFWlQ4VQFxvo7WzlY sthJ3zADAEYRQo3M/Qr6SheiMkGVlM9Ol5W4ZHakJSPnAJsRxTdnthUx 6jPtLfCJ9ALUo4BjxeMCeYzb5Qx1W51dvmY147kRDt0M4DQ02uwKzi0c f/tCVg==
;; Received 818 bytes from 198.97.190.53#53(h.root-servers.net) in 24 ms
4chan.org. 86400 IN NS rita.ns.cloudflare.com.
4chan.org. 86400 IN NS rick.ns.cloudflare.com.
4chan.org. 86400 IN DS 2371 13 2 6A733A066EC854DA185286CCFA57A32D5DB8C5423DDA19AE45C8DF62 7E6B3616
4chan.org. 86400 IN RRSIG DS 7 2 86400 20200807152700 20200717142700 27353 org. NVLL4jjoUlqQGE01bwZmMLUx8KHG+gwMnYgXGdRX1ea782pva0Db2IlU ENiH3NsJhM2poEYltL6ighTX3CBr7T973ZzUJA/kIoRObgIrHJ/B0TiR pNGVodVQWsHKkDNpujwvFgzQYgLvmyKcCw9rIV5HGNxU5QbjcENGs6b7 nq8=
couldn't get address for 'rita.ns.cloudflare.com': not foundI wish my computer was smart enough to "healthcheck" the primary and secondary, and fallback to using the secondary as the primary until it becomes healthy again.
Looks like a major DNS attack.