I assume this is unbound...
This just happened a few hours ago. It has been working perfectly up until now, nothing has been changed and suddenly www.startpage.com was unreachable.
dig @127.0.0.1 www.startpage.com
; <<>> DiG 9.18.28-1~deb12u2-Debian <<>> @127.0.0.1 www.startpage.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55802
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;www.startpage.com. IN A
;; ANSWER SECTION:
www.startpage.com. 856 IN CNAME startpage.com.
startpage.com. 1773 IN A 67.63.58.135
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1) (UDP)
;; WHEN: Sat Dec 07 01:33:27 CET 2024
;; MSG SIZE rcvd: 89
And using Domain to IP Lookup - Find IP Address of the Domain/Website/Server it tells me it should be:
A
Type
Domain Name
TTL
Address
A www.startpage.com 3600
67.63.61.135 Check IP Blacklist
Owner: Surfboard Holding BV [United States of America] WHOIS AS200184
67.63.58.135 vs 67.63.61.135
$ ping -c 3 67.63.58.135
PING 67.63.58.135 (67.63.58.135) 56(84) bytes of data.
--- 67.63.58.135 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2044ms
$ ping -c 3 67.63.61.135
PING 67.63.61.135 (67.63.61.135) 56(84) bytes of data.
64 bytes from 67.63.61.135: icmp_seq=1 ttl=46 time=161 ms
64 bytes from 67.63.61.135: icmp_seq=2 ttl=46 time=160 ms
64 bytes from 67.63.61.135: icmp_seq=3 ttl=46 time=160 ms
--- 67.63.61.135 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 160.238/160.424/160.698/0.197 ms
$ traceroute www.startpage.com
traceroute to www.startpage.com (67.63.58.135), 30 hops max, 60 byte packets
1 OpenWrt.lan (192.168.99.1) 1.091 ms 1.016 ms 5.694 ms
2 * * *
3 83.255.251.110 (83.255.251.110) 6.697 ms 6.762 ms 6.817 ms
4 vag-bbr-1-be100.net.comhem.se (213.200.167.42) 13.900 ms vag-bbr-2-be100.net.comhem.se (213.200.167.40) 18.621 ms 18.769 ms
5 ch-kt-cagg-1-be23.net.comhem.se (213.200.163.72) 14.472 ms ch-vrr-cagg-1-be24.net.comhem.se (213.200.163.2) 10.632 ms 10.788 ms
6 bck3-core-1.bundle-ether8.tele2.net (91.129.12.110) 18.625 ms bck3-core-1.bundle-ether9.tele2.net (91.129.12.76) 6.969 ms 6.994 ms
7 brn-core-1.bundle-ether2.tele2.net (91.129.12.45) 14.980 ms 14.451 ms lim-core-2.bundle-ether1.tele2.net (91.129.12.19) 10.806 ms
8 lm1-peer-2.ae1-unit0.tele2.net (91.129.14.124) 10.855 ms lm1-peer-2.ae2-unit0.tele2.net (91.129.14.126) 11.134 ms 14.033 ms
9 * * *
10 be3090.rcr21.cph01.atlas.cogentco.com (154.54.74.45) 12.214 ms 15.574 ms 15.549 ms
11 be2504.ccr42.ham01.atlas.cogentco.com (154.54.61.229) 13.362 ms 13.285 ms 17.031 ms
12 be5748.ccr41.fra05.atlas.cogentco.com (130.117.48.129) 25.280 ms be5749.ccr41.fra05.atlas.cogentco.com (130.117.48.157) 25.424 ms be5748.ccr41.fra05.atlas.cogentco.com (130.117.48.129) 25.202 ms
13 be3763.agr31.fra05.atlas.cogentco.com (154.54.76.210) 25.289 ms 28.995 ms 25.272 ms
14 francetelecom.fra03.atlas.cogentco.com (130.117.14.226) 25.234 ms 21.492 ms 25.459 ms
15 * * *
16 * * *
17 * * *
18 Be3.bbna03.ah2.routit.net (37.0.80.112) 26.200 ms 26.582 ms be4.iar03.asd2.routit.net (37.0.80.114) 29.517 ms
19 be1.bbna02.kpn-asd2.routit.net (37.0.80.36) 26.276 ms be2.bbna02.dc2.routit.net (84.246.25.30) 33.340 ms 33.647 ms
20 be42.core4-a.tc2.routit.net (84.246.25.58) 26.461 ms 30.188 ms 30.687 ms
21 Te1-2.las02.tc2.routit.net (37.0.80.193) 30.389 ms 34.224 ms 34.609 ms
22 rt151bb44-46-110.routit.net (46.44.151.110) 31.238 ms 35.201 ms 31.449 ms
23 * * *
24 * * *
25 * * *
26 * * *
27 * * *
28 * * *
29 * * *
30 * * *
I am using cloudflare with tls (ipv4 only)
Added content in /etc/unbound/unbound.conf.d/pi-hole.conf
:
# TLS settings
# tls-upstream: yes
tls-cert-bundle: "/etc/ssl/certs/ca-certificates.crt"
forward-zone:
name: "."
# Cloudflare
forward-addr: 1.1.1.1@853#cloudflare-dns.com
forward-addr: 1.0.0.1@853#cloudflare-dns.com
# forward-addr: 2606:4700:4700::1111@853
# forward-addr: 2606:4700:4700::1001@853
forward-ssl-upstream: yes
Entire file
$ cat /etc/unbound/unbound.conf.d/pi-hole.conf
server:
# If no logfile is specified, syslog is used
# logfile: "/var/log/unbound/unbound.log"
verbosity: 0
interface: 127.0.0.1
port: 5335
do-ip4: yes
do-udp: yes
do-tcp: yes
# May be set to yes if you have IPv6 connectivity
do-ip6: no
# You want to leave this to no unless you have *native* IPv6. With 6to4 and
# Terredo tunnels your web browser should favor IPv4 for the same reasons
prefer-ip6: no
# Use this only when you downloaded the list of primary root servers!
# If you use the default dns-root-data package, unbound will find it automatically
#root-hints: "/var/lib/unbound/root.hints"
# Trust glue only if it is within the server's authority
harden-glue: yes
# Require DNSSEC data for trust-anchored zones, if such data is absent, the zone becomes BOGUS
harden-dnssec-stripped: yes
# Don't use Capitalization randomization as it known to cause DNSSEC issues sometimes
# see https://discourse.pi-hole.net/t/unbound-stubby-or-dnscrypt-proxy/9378 for further details
use-caps-for-id: no
# Reduce EDNS reassembly buffer size.
# IP fragmentation is unreliable on the Internet today, and can cause
# transmission failures when large DNS messages are sent via UDP. Even
# when fragmentation does work, it may not be secure; it is theoretically
# possible to spoof parts of a fragmented DNS message, without easy
# detection at the receiving end. Recently, there was an excellent study
# >>> Defragmenting DNS - Determining the optimal maximum UDP response size for DNS <<<
# by Axel Koolhaas, and Tjeerd Slokker (https://indico.dns-oarc.net/event/36/contributions/776/)
# in collaboration with NLnet Labs explored DNS using real world data from the
# the RIPE Atlas probes and the researchers suggested different values for
# IPv4 and IPv6 and in different scenarios. They advise that servers should
# be configured to limit DNS messages sent over UDP to a size that will not
# trigger fragmentation on typical network links. DNS servers can switch
# from UDP to TCP when a DNS response is too big to fit in this limited
# buffer size. This value has also been suggested in DNS Flag Day 2020.
edns-buffer-size: 1232
# Perform prefetching of close to expired message cache entries
# This only applies to domains that have been frequently queried
prefetch: yes
# One thread should be sufficient, can be increased on beefy machines. In reality for most users running on small networks or on a single machine, it should be unnecessary to seek performance enhancement by increasing num-threads above 1.
num-threads: 1
# Ensure kernel buffer is large enough to not lose messages in traffic spikes
so-rcvbuf: 1m
# Ensure privacy of local IP ranges
private-address: 192.168.0.0/16
private-address: 169.254.0.0/16
private-address: 172.16.0.0/12
private-address: 10.0.0.0/8
private-address: fd00::/8
private-address: fe80::/10
# TLS settings
# tls-upstream: yes
tls-cert-bundle: "/etc/ssl/certs/ca-certificates.crt"
forward-zone:
name: "."
# Cloudflare
forward-addr: 1.1.1.1@853#cloudflare-dns.com
forward-addr: 1.0.0.1@853#cloudflare-dns.com
# forward-addr: 2606:4700:4700::1111@853
# forward-addr: 2606:4700:4700::1001@853
forward-ssl-upstream: yes
If I add for example the "default" cloudflair dns:s in the pihole dns settings on top of my custom 127.0.0.1#5335
it still does not work.
BUT if I add 1.1.1.1 to my network interface (on my computer, not the pihole) I can reach www.startpage.com.
There might be other pages not working that I have not found, but all other web traffic seems to work just fine, it is only startpage that returns a timeout.
Any tips out there for a noob like me?