Please follow the below template, it will help us to help you!
If you are Experiencing issues with a Pi-hole install that has non-standard elements (e.g you are using nginx
instead of lighttpd
, or there is some other aspect of your install that is customised) - please use the Community Help category.
Expected Behaviour:
I am also using unbound 1.17.1
Expected behavior: Sites that are not on blocklist are resolved and loaded and sites that are on blocklist are blocked.
Actual Behaviour:
Sites that are not on my blocklist are not resolving. Not all sites, but a few random ones that I can't figure out. For instance:
This is returning NXDOMAIN when I expect it to load. When I reboot my Raspberry Pi, the sites start working again and returns CNAME for a reply but it only lasts about 48 hours before it starts happening again. I've even wiped clean my SD Card and done a fresh install of everything and I get the same results.
Debug Token:
https://tricorder.pi-hole.net/ybn3WTPB/
NXDOMAIN
is a valid resolution result - it means that the authoritative DNS server for a given domain has replied that such a domain doesn't exist at the time of the DNS query.
If the query succeeds at a later time, that would indicate that DNS records have later been (re)added by the respective maintainers.
That doesn't really make sense in this context. There is an error in retrieving the result somehow. I'm not sure if it has to do with unbound or pihole, but the response changes depending on how recently I rebooted my pihole and nothing else. It works immediately after rebooting, and fails after 48 hours. The maintainers are not involved in this process.
Pi-hole doesn't create the NXDOMAIN response. This was sent by the upstream server (unbound in your case).
Do you see the same if you temporarily remove unbound from your setup (using a public DNS server as Pi-hole upstream)?
How so?
Does unbound
's log file show an error that it then somehow transforms to NXDOMAIN
?
By default, unbound
would work as a recursive resolver, querying authoritative DNS servers for a given domain, which would always involve DNS records as created by the respective maintainers.
Does your unbound
configuration change that to behave as a forwarding resolver perhaps?
Could you share your unbound
configuration?
I believe I copied this right from the pihole docs.
pi@tidalpi:~ $ 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 automat ically
#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 t he
# 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 re ality 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 spike s
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
As far as if the solution is fixed if I use a public resolver, I will have to wait a day or two to let me setup "fail" in order to compare. But I suspect using a public resolver would not produce the same result and "fix" the issue.
That looks ok, but it's just the Pi-hole configuration file.
To be sure to catch all additional configurations, use e.g.
sudo grep -v '#\|^$' -R /etc/unbound/unbound.conf*
You are currently not logging anything (verbosity: 0
).
If you want to investigate how unbound
retrieves that NXDOMAIN reply, you'd have to consider raising verbosity, and perhaps enable an unbound
specific log file (see unbound - Pi-hole documentation).
Do you see the same if you temporarily remove unbound from your setup (using a public DNS server as Pi-hole upstream)?
The problem does not occur when I use a public DNS server.
pi@tidalpi:~ $ sudo grep -v '#\|^$' -R /etc/unbound/unbound.conf*
/etc/unbound/unbound.conf:include: "/etc/unbound/unbound.conf.d/*.conf"
/etc/unbound/unbound.conf.d/pi-hole.conf:server:
/etc/unbound/unbound.conf.d/pi-hole.conf: verbosity: 0
/etc/unbound/unbound.conf.d/pi-hole.conf: interface: 127.0.0.1
/etc/unbound/unbound.conf.d/pi-hole.conf: port: 5335
/etc/unbound/unbound.conf.d/pi-hole.conf: do-ip4: yes
/etc/unbound/unbound.conf.d/pi-hole.conf: do-udp: yes
/etc/unbound/unbound.conf.d/pi-hole.conf: do-tcp: yes
/etc/unbound/unbound.conf.d/pi-hole.conf: do-ip6: no
/etc/unbound/unbound.conf.d/pi-hole.conf: prefer-ip6: no
/etc/unbound/unbound.conf.d/pi-hole.conf: harden-glue: yes
/etc/unbound/unbound.conf.d/pi-hole.conf: harden-dnssec-stripped: yes
/etc/unbound/unbound.conf.d/pi-hole.conf: use-caps-for-id: no
/etc/unbound/unbound.conf.d/pi-hole.conf: edns-buffer-size: 1232
/etc/unbound/unbound.conf.d/pi-hole.conf: prefetch: yes
/etc/unbound/unbound.conf.d/pi-hole.conf: num-threads: 1
/etc/unbound/unbound.conf.d/pi-hole.conf: so-rcvbuf: 1m
/etc/unbound/unbound.conf.d/pi-hole.conf: private-address: 192.168.0.0/16
/etc/unbound/unbound.conf.d/pi-hole.conf: private-address: 169.254.0.0/16
/etc/unbound/unbound.conf.d/pi-hole.conf: private-address: 172.16.0.0/12
/etc/unbound/unbound.conf.d/pi-hole.conf: private-address: 10.0.0.0/8
/etc/unbound/unbound.conf.d/pi-hole.conf: private-address: fd00::/8
/etc/unbound/unbound.conf.d/pi-hole.conf: private-address: fe80::/10
That's the only config file I use. After enabling unbound logging, I see this:
pi@tidalpi:~ $ cat /var/log/unbound/unbound.log
Jul 12 10:05:21 unbound[16849:0] notice: init module 0: subnetcache
Jul 12 10:05:21 unbound[16849:0] warning: subnetcache: prefetch is set but not working for data originating from the subnet module cache.
Jul 12 10:05:21 unbound[16849:0] notice: init module 1: validator
Jul 12 10:05:21 unbound[16849:0] notice: init module 2: iterator
Jul 12 10:05:22 unbound[16849:0] info: start of service (unbound 1.17.1).
Jul 12 10:05:27 unbound[16849:0] info: generate keytag query _ta-4f66. NULL IN
Jul 12 10:07:19 unbound[16849:0] info: service stopped (unbound 1.17.1).
Jul 12 10:07:19 unbound[16849:0] info: server stats for thread 0: 24 queries, 0 answers from cache, 24 recursions, 0 prefetch, 0 rejected by ip ratelimiting
Jul 12 10:07:19 unbound[16849:0] info: server stats for thread 0: requestlist max 2 avg 0.25 exceeded 0 jostled 0
Jul 12 10:07:19 unbound[16849:0] info: average recursion processing time 0.188301 sec
Jul 12 10:07:19 unbound[16849:0] info: histogram of recursion processing times
Jul 12 10:07:19 unbound[16849:0] info: [25%]=0.0294912 median[50%]=0.065536 [75%]=0.196608
Jul 12 10:07:19 unbound[16849:0] info: lower(secs) upper(secs) recursions
Jul 12 10:07:19 unbound[16849:0] info: 0.000000 0.000001 2
Jul 12 10:07:19 unbound[16849:0] info: 0.016384 0.032768 5
Jul 12 10:07:19 unbound[16849:0] info: 0.032768 0.065536 5
Jul 12 10:07:19 unbound[16849:0] info: 0.065536 0.131072 4
Jul 12 10:07:19 unbound[16849:0] info: 0.131072 0.262144 4
Jul 12 10:07:19 unbound[16849:0] info: 0.262144 0.524288 1
Jul 12 10:07:19 unbound[16849:0] info: 0.524288 1.000000 3
Jul 12 10:07:19 unbound[16917:0] notice: init module 0: subnetcache
Jul 12 10:07:19 unbound[16917:0] notice: init module 1: validator
Jul 12 10:07:19 unbound[16917:0] notice: init module 2: iterator
Jul 12 10:07:19 unbound[16917:0] info: start of service (unbound 1.17.1).
Jul 12 10:07:20 unbound[16917:0] info: generate keytag query _ta-4f66. NULL IN
Jul 12 10:09:29 unbound[16917:0] info: service stopped (unbound 1.17.1).
Jul 12 10:09:29 unbound[16917:0] info: server stats for thread 0: 20 queries, 0 answers from cache, 20 recursions, 0 prefetch, 0 rejected by ip ratelimiting
Jul 12 10:09:29 unbound[16917:0] info: server stats for thread 0: requestlist max 3 avg 0.65 exceeded 0 jostled 0
Jul 12 10:09:29 unbound[16917:0] info: average recursion processing time 0.239909 sec
Jul 12 10:09:29 unbound[16917:0] info: histogram of recursion processing times
Jul 12 10:09:29 unbound[16917:0] info: [25%]=0.0436907 median[50%]=0.131072 [75%]=0.262144
Jul 12 10:09:29 unbound[16917:0] info: lower(secs) upper(secs) recursions
Jul 12 10:09:29 unbound[16917:0] info: 0.016384 0.032768 4
Jul 12 10:09:29 unbound[16917:0] info: 0.032768 0.065536 3
Jul 12 10:09:29 unbound[16917:0] info: 0.065536 0.131072 3
Jul 12 10:09:29 unbound[16917:0] info: 0.131072 0.262144 5
Jul 12 10:09:29 unbound[16917:0] info: 0.262144 0.524288 1
Jul 12 10:09:29 unbound[16917:0] info: 0.524288 1.000000 4
Jul 12 10:09:29 unbound[17007:0] notice: init module 0: subnetcache
Jul 12 10:09:29 unbound[17007:0] notice: init module 1: validator
Jul 12 10:09:29 unbound[17007:0] notice: init module 2: iterator
Jul 12 10:09:29 unbound[17007:0] info: start of service (unbound 1.17.1).
Jul 12 10:09:31 unbound[17007:0] info: generate keytag query _ta-4f66. NULL IN
Jul 12 10:11:44 unbound[17007:0] info: service stopped (unbound 1.17.1).
Jul 12 10:11:44 unbound[17007:0] info: server stats for thread 0: 36 queries, 0 answers from cache, 36 recursions, 0 prefetch, 0 rejected by ip ratelimiting
Jul 12 10:11:44 unbound[17007:0] info: server stats for thread 0: requestlist max 4 avg 0.75 exceeded 0 jostled 0
Jul 12 10:11:44 unbound[17007:0] info: average recursion processing time 0.187116 sec
Jul 12 10:11:44 unbound[17007:0] info: histogram of recursion processing times
Jul 12 10:11:44 unbound[17007:0] info: [25%]=0.0436907 median[50%]=0.131072 [75%]=0.249037
Jul 12 10:11:44 unbound[17007:0] info: lower(secs) upper(secs) recursions
Jul 12 10:11:44 unbound[17007:0] info: 0.000000 0.000001 4
Jul 12 10:11:44 unbound[17007:0] info: 0.016384 0.032768 3
Jul 12 10:11:44 unbound[17007:0] info: 0.032768 0.065536 6
Jul 12 10:11:44 unbound[17007:0] info: 0.065536 0.131072 5
Jul 12 10:11:44 unbound[17007:0] info: 0.131072 0.262144 10
Jul 12 10:11:44 unbound[17007:0] info: 0.262144 0.524288 4
Jul 12 10:11:44 unbound[17007:0] info: 0.524288 1.000000 4
Jul 12 10:11:44 unbound[17057:0] notice: init module 0: subnetcache
Jul 12 10:11:44 unbound[17057:0] warning: subnetcache: prefetch is set but not working for data originating from the subnet module cache.
Jul 12 10:11:44 unbound[17057:0] notice: init module 1: validator
Jul 12 10:11:44 unbound[17057:0] notice: init module 2: iterator
Jul 12 10:11:44 unbound[17057:0] info: start of service (unbound 1.17.1).
Jul 12 10:12:22 unbound[17057:0] info: generate keytag query _ta-4f66. NULL IN
Jul 12 10:21:03 unbound[17057:0] info: service stopped (unbound 1.17.1).
Jul 12 10:21:03 unbound[17057:0] info: server stats for thread 0: 129 queries, 6 answers from cache, 123 recursions, 1 prefetch, 0 rejected by ip ratelimiting
Jul 12 10:21:03 unbound[17057:0] info: server stats for thread 0: requestlist max 5 avg 0.766129 exceeded 0 jostled 0
Jul 12 10:21:03 unbound[17057:0] info: average recursion processing time 0.309007 sec
Jul 12 10:21:03 unbound[17057:0] info: histogram of recursion processing times
Jul 12 10:21:03 unbound[17057:0] info: [25%]=0.0354184 median[50%]=0.0650541 [75%]=0.182272
Jul 12 10:21:03 unbound[17057:0] info: lower(secs) upper(secs) recursions
Jul 12 10:21:03 unbound[17057:0] info: 0.000000 0.000001 4
Jul 12 10:21:03 unbound[17057:0] info: 0.008192 0.016384 1
Jul 12 10:21:03 unbound[17057:0] info: 0.016384 0.032768 23
Jul 12 10:21:03 unbound[17057:0] info: 0.032768 0.065536 34
Jul 12 10:21:03 unbound[17057:0] info: 0.065536 0.131072 24
Jul 12 10:21:03 unbound[17057:0] info: 0.131072 0.262144 16
Jul 12 10:21:03 unbound[17057:0] info: 0.262144 0.524288 11
Jul 12 10:21:03 unbound[17057:0] info: 0.524288 1.000000 6
Jul 12 10:21:03 unbound[17057:0] info: 2.000000 4.000000 1
Jul 12 10:21:03 unbound[17057:0] info: 4.000000 8.000000 3
Jan 09 16:42:28 unbound[16162:0] notice: init module 0: subnetcache
Jan 09 16:42:28 unbound[16162:0] warning: subnetcache: prefetch is set but not working for data originating from the subnet module cache.
Jan 09 16:42:28 unbound[16162:0] notice: init module 1: validator
Jan 09 16:42:28 unbound[16162:0] notice: init module 2: iterator
Jan 09 16:42:28 unbound[16162:0] info: start of service (unbound 1.17.1).
I hope this helps.
Your grep confirmed that there is no additional configuration, so you are running your unbound
with Pi-hole's suggested configuration, i.e. as a recursive resolver retrieving resolution results directly from authoritative DNS servers.
Note that results may differ from those retrieved by a public DNS resolver, depending on authoritative DNS server configuration, e.g. authoritative DNS servers may be configured to attempt providing IP addresses in their replies that are topologically close to the DNS request's source IP address. For a local unbound, that would be your address, whereas for a public resolver, that would be the public resolver's IP as used in the DNS request.
I'd like to re-emphasise that NXDOMAIN
is a valid resolution result, indicating that an authoritative DNS server has confirmed that the requested domain does not exist.
It does not indicate a blocked or refused reply or a resolution error (which would be returned as SERVFAIL
, potentially along with an with an EDE reason code).
As for the log file:
You should heed the advice from the linked guide and not leave it on for daily usage, as unbound's logs grow large fast.
You should consider to raise verbosity when you observe unexpected NXDOMAIN
results, then issue a dig for your offending domain and inspect the log for details.
I am fairly confident that you'll see that NXDOMAIN
is indeed the result provided by the authoritative DNS server - based on your unbound
configuration, there is no reason to assume otherwise.
After raising verbosity to 2 and reloading the reddit page which is failing to load thumbnails, this is the log page:
pi@tidalpi:~ $ cat /var/log/unbound/unbound.log
Jan 12 10:36:10 unbound[73994:0] notice: init module 0: subnetcache
Jan 12 10:36:10 unbound[73994:0] warning: subnetcache: prefetch is set but not working for data originating from the subnet module cache.
Jan 12 10:36:10 unbound[73994:0] notice: init module 1: validator
Jan 12 10:36:10 unbound[73994:0] notice: init module 2: iterator
Jan 12 10:36:10 unbound[73994:0] info: start of service (unbound 1.17.1).
Jan 12 10:36:19 unbound[73994:0] info: resolving cdn-icloud-content.g.aaplimg.com. A IN
Jan 12 10:36:19 unbound[73994:0] info: priming . IN NS
Jan 12 10:36:19 unbound[73994:0] info: response for . NS IN
Jan 12 10:36:19 unbound[73994:0] info: reply from <.> 199.7.91.13#53
Jan 12 10:36:19 unbound[73994:0] info: query response REC_LAME: recursive but not authoritative server
Jan 12 10:36:19 unbound[73994:0] info: mark as REC_LAME
Jan 12 10:36:19 unbound[73994:0] info: response for . NS IN
Jan 12 10:36:19 unbound[73994:0] info: reply from <.> 192.36.148.17#53
Jan 12 10:36:19 unbound[73994:0] info: query response REC_LAME: recursive but not authoritative server
Jan 12 10:36:19 unbound[73994:0] info: mark as REC_LAME
Jan 12 10:36:19 unbound[73994:0] info: response for . NS IN
Jan 12 10:36:19 unbound[73994:0] info: reply from <.> 198.41.0.4#53
Jan 12 10:36:19 unbound[73994:0] info: query response REC_LAME: recursive but not authoritative server
Jan 12 10:36:19 unbound[73994:0] info: mark as REC_LAME
Jan 12 10:36:19 unbound[73994:0] info: response for . NS IN
Jan 12 10:36:19 unbound[73994:0] info: reply from <.> 192.33.4.12#53
Jan 12 10:36:19 unbound[73994:0] info: query response REC_LAME: recursive but not authoritative server
Jan 12 10:36:19 unbound[73994:0] info: mark as REC_LAME
Jan 12 10:36:19 unbound[73994:0] info: response for . NS IN
Jan 12 10:36:19 unbound[73994:0] info: reply from <.> 192.112.36.4#53
Jan 12 10:36:19 unbound[73994:0] info: query response REC_LAME: recursive but not authoritative server
Jan 12 10:36:19 unbound[73994:0] info: mark as REC_LAME
Jan 12 10:36:19 unbound[73994:0] info: response for . NS IN
Jan 12 10:36:19 unbound[73994:0] info: reply from <.> 198.97.190.53#53
Jan 12 10:36:19 unbound[73994:0] info: query response REC_LAME: recursive but not authoritative server
Jan 12 10:36:19 unbound[73994:0] info: mark as REC_LAME
Jan 12 10:36:19 unbound[73994:0] info: response for . NS IN
Jan 12 10:36:19 unbound[73994:0] info: reply from <.> 199.9.14.201#53
Jan 12 10:36:19 unbound[73994:0] info: query response REC_LAME: recursive but not authoritative server
Jan 12 10:36:19 unbound[73994:0] info: mark as REC_LAME
Jan 12 10:36:19 unbound[73994:0] info: response for . NS IN
Jan 12 10:36:19 unbound[73994:0] info: reply from <.> 202.12.27.33#53
Jan 12 10:36:19 unbound[73994:0] info: query response REC_LAME: recursive but not authoritative server
Jan 12 10:36:19 unbound[73994:0] info: mark as REC_LAME
Jan 12 10:36:19 unbound[73994:0] info: response for . NS IN
Jan 12 10:36:19 unbound[73994:0] info: reply from <.> 193.0.14.129#53
Jan 12 10:36:19 unbound[73994:0] info: query response REC_LAME: recursive but not authoritative server
Jan 12 10:36:19 unbound[73994:0] info: mark as REC_LAME
Jan 12 10:36:19 unbound[73994:0] info: response for . NS IN
Jan 12 10:36:19 unbound[73994:0] info: reply from <.> 192.58.128.30#53
Jan 12 10:36:19 unbound[73994:0] info: query response REC_LAME: recursive but not authoritative server
Jan 12 10:36:19 unbound[73994:0] info: mark as REC_LAME
Jan 12 10:36:19 unbound[73994:0] info: response for . NS IN
Jan 12 10:36:19 unbound[73994:0] info: reply from <.> 192.203.230.10#53
Jan 12 10:36:19 unbound[73994:0] info: query response REC_LAME: recursive but not authoritative server
Jan 12 10:36:19 unbound[73994:0] info: mark as REC_LAME
Jan 12 10:36:19 unbound[73994:0] info: response for . NS IN
Jan 12 10:36:19 unbound[73994:0] info: reply from <.> 199.7.83.42#53
Jan 12 10:36:19 unbound[73994:0] info: query response REC_LAME: recursive but not authoritative server
Jan 12 10:36:19 unbound[73994:0] info: mark as REC_LAME
Jan 12 10:36:19 unbound[73994:0] info: response for . NS IN
Jan 12 10:36:19 unbound[73994:0] info: reply from <.> 192.5.5.241#53
Jan 12 10:36:19 unbound[73994:0] info: query response REC_LAME: recursive but not authoritative server
Jan 12 10:36:19 unbound[73994:0] info: mark as REC_LAME
Jan 12 10:36:19 unbound[73994:0] info: response for . NS IN
Jan 12 10:36:19 unbound[73994:0] info: reply from <.> 192.33.4.12#53
Jan 12 10:36:19 unbound[73994:0] info: query response was ANSWER
Jan 12 10:36:19 unbound[73994:0] info: priming successful for . NS IN
Jan 12 10:36:19 unbound[73994:0] info: response for cdn-icloud-content.g.aaplimg.com. A IN
Jan 12 10:36:19 unbound[73994:0] info: reply from <.> 170.247.170.2#53
Jan 12 10:36:19 unbound[73994:0] info: query response REC_LAME: recursive but not authoritative server
Jan 12 10:36:19 unbound[73994:0] info: mark as REC_LAME
Jan 12 10:36:19 unbound[73994:0] info: response for cdn-icloud-content.g.aaplimg.com. A IN
Jan 12 10:36:19 unbound[73994:0] info: reply from <.> 192.203.230.10#53
Jan 12 10:36:19 unbound[73994:0] info: query response was ANSWER
Jan 12 10:36:28 unbound[73994:0] info: resolving dualstack.reddit.map.fastly.net. A IN
Jan 12 10:36:28 unbound[73994:0] info: response for dualstack.reddit.map.fastly.net. A IN
Jan 12 10:36:28 unbound[73994:0] info: reply from <.> 193.0.14.129#53
Jan 12 10:36:28 unbound[73994:0] info: query response was nodata ANSWER
Jan 12 10:36:28 unbound[73994:0] info: response for dualstack.reddit.map.fastly.net. A IN
Jan 12 10:36:28 unbound[73994:0] info: reply from <.> 192.112.36.4#53
Jan 12 10:36:28 unbound[73994:0] info: query response was ANSWER
Jan 12 10:36:28 unbound[73994:0] info: response for dualstack.reddit.map.fastly.net. A IN
Jan 12 10:36:28 unbound[73994:0] info: reply from <.> 199.7.83.42#53
Jan 12 10:36:28 unbound[73994:0] info: query response was ANSWER
Jan 12 10:36:28 unbound[73994:0] info: response for dualstack.reddit.map.fastly.net. A IN
Jan 12 10:36:28 unbound[73994:0] info: reply from <.> 198.41.0.4#53
Jan 12 10:36:28 unbound[73994:0] info: query response was ANSWER
Jan 12 10:36:28 unbound[73994:0] info: response for dualstack.reddit.map.fastly.net. A IN
Jan 12 10:36:28 unbound[73994:0] info: reply from <.> 198.97.190.53#53
Jan 12 10:36:28 unbound[73994:0] info: query response was ANSWER
I don't see the a.thumbs.redditmedia.com
or b.thumbs.redditmedia.com
in the logs which are the domains in question that are not having the expected results.
I am fairly confident that you'll see that NXDOMAIN
is indeed the result provided by the authoritative DNS server - based on your unbound
configuration, there is no reason to assume otherwise.
But how come this is only true after my pihole has been running for a few days? That domains resolves fine after I reboot, or when I choose a different upstream DNS server, or when I am not using pihole, or on my home pihole setup (as opposed to this one, which is my office setup, which also uses unbound). If you try to resolve a.thumbs.redditmedia.com
or b.thumbs.redditmedia.com
do you get an NXDOMAIN
result? If not, then how could that been the true result of the authoritative DNS server?
Then chances are that replies for those domains are still cached by either Pi-hole or the requesting client itself. As both of those domains are CNAMEs referring to dualstack.reddit.map.fastly.net.
, it could be just those CNAMEs that are cached, and the log still seems related and representative for the actual A record lookup (with a shorter TTL than the CNAME) your observation.
However, something else from your log is disturbing:
That would indicate that the contacted server is not sending authoritative replies.
But you are talking to the root servers here - they definitely are authoritative.
This would suggest that something upstream of unbound
may be intercepting DNS traffic, so the answers you are seeing would not be originating from the root servers.
Do you run a firewall in your network, or would you route outbound public traffic through a VPN service provider?
Hi, so I was away from my home network at the time I tested so I was running the tests at the time through a VPN and also there is a firewall on the network, so both were true at the time.
I reran the tests now that I'm back on the home network, so no longer using a VPN but yes there is an active firewall. Here are the new results:
pi@tidalpi:~ $ cat /var/log/unbound/unbound.log
Jan 13 08:54:26 unbound[83681:0] notice: init module 0: subnetcache
Jan 13 08:54:26 unbound[83681:0] warning: subnetcache: prefetch is set but not working for data originating from the subnet module cache.
Jan 13 08:54:26 unbound[83681:0] notice: init module 1: validator
Jan 13 08:54:26 unbound[83681:0] notice: init module 2: iterator
Jan 13 08:54:26 unbound[83681:0] info: start of service (unbound 1.17.1).
pi@tidalpi:~ $ cat /var/log/unbound/unbound.log
Jan 13 08:54:26 unbound[83681:0] notice: init module 0: subnetcache
Jan 13 08:54:26 unbound[83681:0] warning: subnetcache: prefetch is set but not working for data originating from the subnet module cache.
Jan 13 08:54:26 unbound[83681:0] notice: init module 1: validator
Jan 13 08:54:26 unbound[83681:0] notice: init module 2: iterator
Jan 13 08:54:26 unbound[83681:0] info: start of service (unbound 1.17.1).
Jan 13 08:54:40 unbound[83681:0] info: resolving st2-v3-dc.splashtop.com. A IN
Jan 13 08:54:40 unbound[83681:0] info: priming . IN NS
Jan 13 08:54:40 unbound[83681:0] info: response for . NS IN
Jan 13 08:54:40 unbound[83681:0] info: reply from <.> 199.9.14.201#53
Jan 13 08:54:40 unbound[83681:0] info: query response REC_LAME: recursive but not authoritative server
Jan 13 08:54:40 unbound[83681:0] info: mark as REC_LAME
Jan 13 08:54:40 unbound[83681:0] info: response for . NS IN
Jan 13 08:54:40 unbound[83681:0] info: reply from <.> 192.36.148.17#53
Jan 13 08:54:40 unbound[83681:0] info: query response REC_LAME: recursive but not authoritative server
Jan 13 08:54:40 unbound[83681:0] info: mark as REC_LAME
Jan 13 08:54:40 unbound[83681:0] info: response for . NS IN
Jan 13 08:54:40 unbound[83681:0] info: reply from <.> 192.58.128.30#53
Jan 13 08:54:40 unbound[83681:0] info: query response REC_LAME: recursive but not authoritative server
Jan 13 08:54:40 unbound[83681:0] info: mark as REC_LAME
Jan 13 08:54:40 unbound[83681:0] info: response for . NS IN
Jan 13 08:54:40 unbound[83681:0] info: reply from <.> 199.7.83.42#53
Jan 13 08:54:40 unbound[83681:0] info: query response REC_LAME: recursive but not authoritative server
Jan 13 08:54:40 unbound[83681:0] info: mark as REC_LAME
Jan 13 08:54:40 unbound[83681:0] info: response for . NS IN
Jan 13 08:54:40 unbound[83681:0] info: reply from <.> 192.5.5.241#53
Jan 13 08:54:40 unbound[83681:0] info: query response REC_LAME: recursive but not authoritative server
Jan 13 08:54:40 unbound[83681:0] info: mark as REC_LAME
Jan 13 08:54:40 unbound[83681:0] info: response for . NS IN
Jan 13 08:54:40 unbound[83681:0] info: reply from <.> 193.0.14.129#53
Jan 13 08:54:40 unbound[83681:0] info: query response REC_LAME: recursive but not authoritative server
Jan 13 08:54:40 unbound[83681:0] info: mark as REC_LAME
Jan 13 08:54:40 unbound[83681:0] info: response for . NS IN
Jan 13 08:54:40 unbound[83681:0] info: reply from <.> 192.112.36.4#53
Jan 13 08:54:40 unbound[83681:0] info: query response REC_LAME: recursive but not authoritative server
Jan 13 08:54:40 unbound[83681:0] info: mark as REC_LAME
Jan 13 08:54:40 unbound[83681:0] info: response for . NS IN
Jan 13 08:54:40 unbound[83681:0] info: reply from <.> 198.97.190.53#53
Jan 13 08:54:40 unbound[83681:0] info: query response REC_LAME: recursive but not authoritative server
Jan 13 08:54:40 unbound[83681:0] info: mark as REC_LAME
Jan 13 08:54:40 unbound[83681:0] info: response for . NS IN
Jan 13 08:54:40 unbound[83681:0] info: reply from <.> 192.33.4.12#53
Jan 13 08:54:40 unbound[83681:0] info: query response REC_LAME: recursive but not authoritative server
Jan 13 08:54:40 unbound[83681:0] info: mark as REC_LAME
Jan 13 08:54:40 unbound[83681:0] info: response for . NS IN
Jan 13 08:54:40 unbound[83681:0] info: reply from <.> 199.7.91.13#53
Jan 13 08:54:40 unbound[83681:0] info: query response REC_LAME: recursive but not authoritative server
Jan 13 08:54:40 unbound[83681:0] info: mark as REC_LAME
Jan 13 08:54:40 unbound[83681:0] info: resolving st2-v3-dc.splashtop.com. A IN
Jan 13 08:54:40 unbound[83681:0] info: priming . IN NS
Jan 13 08:54:41 unbound[83681:0] info: response for . NS IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 202.12.27.33#53
Jan 13 08:54:41 unbound[83681:0] info: query response REC_LAME: recursive but not authoritative server
Jan 13 08:54:41 unbound[83681:0] info: mark as REC_LAME
Jan 13 08:54:41 unbound[83681:0] info: response for . NS IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 198.41.0.4#53
Jan 13 08:54:41 unbound[83681:0] info: query response REC_LAME: recursive but not authoritative server
Jan 13 08:54:41 unbound[83681:0] info: mark as REC_LAME
Jan 13 08:54:41 unbound[83681:0] info: response for . NS IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 192.203.230.10#53
Jan 13 08:54:41 unbound[83681:0] info: query response REC_LAME: recursive but not authoritative server
Jan 13 08:54:41 unbound[83681:0] info: mark as REC_LAME
Jan 13 08:54:41 unbound[83681:0] info: response for . NS IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 199.9.14.201#53
Jan 13 08:54:41 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:41 unbound[83681:0] info: priming successful for . NS IN
Jan 13 08:54:41 unbound[83681:0] info: priming successful for . NS IN
Jan 13 08:54:41 unbound[83681:0] info: response for st2-v3-dc.splashtop.com. A IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 170.247.170.2#53
Jan 13 08:54:41 unbound[83681:0] info: query response REC_LAME: recursive but not authoritative server
Jan 13 08:54:41 unbound[83681:0] info: mark as REC_LAME
Jan 13 08:54:41 unbound[83681:0] info: response for st2-v3-dc.splashtop.com. A IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 170.247.170.2#53
Jan 13 08:54:41 unbound[83681:0] info: query response REC_LAME: recursive but not authoritative server
Jan 13 08:54:41 unbound[83681:0] info: mark as REC_LAME
Jan 13 08:54:41 unbound[83681:0] info: response for st2-v3-dc.splashtop.com. A IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 199.7.83.42#53
Jan 13 08:54:41 unbound[83681:0] info: query response was CNAME
Jan 13 08:54:41 unbound[83681:0] info: resolving st2-v3-dc.splashtop.com. A IN
Jan 13 08:54:41 unbound[83681:0] info: response for st2-v3-dc.splashtop.com. A IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 202.12.27.33#53
Jan 13 08:54:41 unbound[83681:0] info: query response was CNAME
Jan 13 08:54:41 unbound[83681:0] info: resolving st2-v3-dc.splashtop.com. A IN
Jan 13 08:54:41 unbound[83681:0] info: response for st2-v3-dc.splashtop.com. A IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 193.0.14.129#53
Jan 13 08:54:41 unbound[83681:0] info: query response was nodata ANSWER
Jan 13 08:54:41 unbound[83681:0] info: response for st2-v3-dc.splashtop.com. A IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 199.7.91.13#53
Jan 13 08:54:41 unbound[83681:0] info: query response was nodata ANSWER
Jan 13 08:54:41 unbound[83681:0] info: response for st2-v3-dc.splashtop.com. A IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 192.203.230.10#53
Jan 13 08:54:41 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:41 unbound[83681:0] info: response for st2-v3-dc.splashtop.com. A IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 192.58.128.30#53
Jan 13 08:54:41 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:41 unbound[83681:0] info: response for st2-v3-dc.splashtop.com. A IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 193.0.14.129#53
Jan 13 08:54:41 unbound[83681:0] info: query response was CNAME
Jan 13 08:54:41 unbound[83681:0] info: resolving st2-v3-dc.splashtop.com. A IN
Jan 13 08:54:41 unbound[83681:0] info: response for st2-v3-dc.splashtop.com. A IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 192.112.36.4#53
Jan 13 08:54:41 unbound[83681:0] info: query response was nodata ANSWER
Jan 13 08:54:41 unbound[83681:0] info: response for st2-v3-dc.splashtop.com. A IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 192.203.230.10#53
Jan 13 08:54:41 unbound[83681:0] info: query response was CNAME
Jan 13 08:54:41 unbound[83681:0] info: resolving st2-v3-dc.splashtop.com. A IN
Jan 13 08:54:41 unbound[83681:0] info: response for st2-v3-dc.splashtop.com. A IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 192.5.5.241#53
Jan 13 08:54:41 unbound[83681:0] info: query response was nodata ANSWER
Jan 13 08:54:41 unbound[83681:0] info: response for st2-v3-dc.splashtop.com. A IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 199.7.83.42#53
Jan 13 08:54:41 unbound[83681:0] info: query response was nodata ANSWER
Jan 13 08:54:41 unbound[83681:0] info: response for st2-v3-dc.splashtop.com. A IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 192.112.36.4#53
Jan 13 08:54:41 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:41 unbound[83681:0] info: response for st2-v3-dc.splashtop.com. A IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 198.97.190.53#53
Jan 13 08:54:41 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:41 unbound[83681:0] info: resolving c.pki.goog. A IN
Jan 13 08:54:41 unbound[83681:0] info: response for c.pki.goog. A IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 192.112.36.4#53
Jan 13 08:54:41 unbound[83681:0] info: query response was nodata ANSWER
Jan 13 08:54:41 unbound[83681:0] info: response for c.pki.goog. A IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 192.112.36.4#53
Jan 13 08:54:41 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:41 unbound[83681:0] info: response for c.pki.goog. A IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 192.58.128.30#53
Jan 13 08:54:41 unbound[83681:0] info: query response was CNAME
Jan 13 08:54:41 unbound[83681:0] info: resolving c.pki.goog. A IN
Jan 13 08:54:41 unbound[83681:0] info: response for c.pki.goog. A IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 192.58.128.30#53
Jan 13 08:54:41 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:41 unbound[83681:0] info: response for c.pki.goog. A IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 193.0.14.129#53
Jan 13 08:54:41 unbound[83681:0] info: query response was nodata ANSWER
Jan 13 08:54:41 unbound[83681:0] info: response for c.pki.goog. A IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 192.36.148.17#53
Jan 13 08:54:41 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:41 unbound[83681:0] info: resolving slack.com. HTTPS IN
Jan 13 08:54:41 unbound[83681:0] info: response for slack.com. HTTPS IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 198.97.190.53#53
Jan 13 08:54:41 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:41 unbound[83681:0] info: response for slack.com. HTTPS IN
Jan 13 08:54:41 unbound[83681:0] info: reply from <.> 192.5.5.241#53
Jan 13 08:54:41 unbound[83681:0] info: query response was nodata ANSWER
Jan 13 08:54:46 unbound[83681:0] info: resolving assets.msn.com. A IN
Jan 13 08:54:46 unbound[83681:0] info: response for assets.msn.com. A IN
Jan 13 08:54:46 unbound[83681:0] info: reply from <.> 192.33.4.12#53
Jan 13 08:54:46 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:46 unbound[83681:0] info: response for assets.msn.com. A IN
Jan 13 08:54:46 unbound[83681:0] info: reply from <.> 192.203.230.10#53
Jan 13 08:54:46 unbound[83681:0] info: query response was CNAME
Jan 13 08:54:46 unbound[83681:0] info: resolving assets.msn.com. A IN
Jan 13 08:54:46 unbound[83681:0] info: response for assets.msn.com. A IN
Jan 13 08:54:46 unbound[83681:0] info: reply from <.> 199.7.91.13#53
Jan 13 08:54:46 unbound[83681:0] info: query response was nodata ANSWER
Jan 13 08:54:46 unbound[83681:0] info: response for assets.msn.com. A IN
Jan 13 08:54:46 unbound[83681:0] info: reply from <.> 192.36.148.17#53
Jan 13 08:54:46 unbound[83681:0] info: query response was CNAME
Jan 13 08:54:46 unbound[83681:0] info: resolving assets.msn.com. A IN
Jan 13 08:54:46 unbound[83681:0] info: response for assets.msn.com. A IN
Jan 13 08:54:46 unbound[83681:0] info: reply from <.> 198.41.0.4#53
Jan 13 08:54:46 unbound[83681:0] info: query response was nodata ANSWER
Jan 13 08:54:46 unbound[83681:0] info: response for assets.msn.com. A IN
Jan 13 08:54:46 unbound[83681:0] info: reply from <.> 193.0.14.129#53
Jan 13 08:54:46 unbound[83681:0] info: query response was CNAME
Jan 13 08:54:46 unbound[83681:0] info: resolving assets.msn.com. A IN
Jan 13 08:54:46 unbound[83681:0] info: response for assets.msn.com. A IN
Jan 13 08:54:46 unbound[83681:0] info: reply from <.> 198.97.190.53#53
Jan 13 08:54:46 unbound[83681:0] info: query response was nodata ANSWER
Jan 13 08:54:46 unbound[83681:0] info: response for assets.msn.com. A IN
Jan 13 08:54:46 unbound[83681:0] info: reply from <.> 192.112.36.4#53
Jan 13 08:54:46 unbound[83681:0] info: query response was nodata ANSWER
Jan 13 08:54:46 unbound[83681:0] info: response for assets.msn.com. A IN
Jan 13 08:54:46 unbound[83681:0] info: reply from <.> 198.97.190.53#53
Jan 13 08:54:46 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:49 unbound[83681:0] info: resolving profile.accounts.firefox.com. AAAA IN
Jan 13 08:54:49 unbound[83681:0] info: response for profile.accounts.firefox.com. AAAA IN
Jan 13 08:54:49 unbound[83681:0] info: reply from <.> 192.112.36.4#53
Jan 13 08:54:49 unbound[83681:0] info: query response was nodata ANSWER
Jan 13 08:54:49 unbound[83681:0] info: resolving example.org. A IN
Jan 13 08:54:49 unbound[83681:0] info: response for example.org. A IN
Jan 13 08:54:49 unbound[83681:0] info: reply from <.> 199.7.91.13#53
Jan 13 08:54:49 unbound[83681:0] info: query response was nodata ANSWER
Jan 13 08:54:49 unbound[83681:0] info: response for example.org. A IN
Jan 13 08:54:49 unbound[83681:0] info: reply from <.> 192.112.36.4#53
Jan 13 08:54:49 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:49 unbound[83681:0] info: response for profile.accounts.firefox.com. AAAA IN
Jan 13 08:54:49 unbound[83681:0] info: reply from <.> 198.97.190.53#53
Jan 13 08:54:49 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:49 unbound[83681:0] info: response for profile.accounts.firefox.com. AAAA IN
Jan 13 08:54:49 unbound[83681:0] info: reply from <.> 192.203.230.10#53
Jan 13 08:54:49 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:49 unbound[83681:0] info: resolving profile.accounts.firefox.com. AAAA IN
Jan 13 08:54:49 unbound[83681:0] info: response for profile.accounts.firefox.com. AAAA IN
Jan 13 08:54:49 unbound[83681:0] info: reply from <.> 198.97.190.53#53
Jan 13 08:54:49 unbound[83681:0] info: query response was nodata ANSWER
Jan 13 08:54:50 unbound[83681:0] info: response for profile.accounts.firefox.com. AAAA IN
Jan 13 08:54:50 unbound[83681:0] info: reply from <.> 192.36.148.17#53
Jan 13 08:54:50 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:50 unbound[83681:0] info: response for profile.accounts.firefox.com. AAAA IN
Jan 13 08:54:50 unbound[83681:0] info: reply from <.> 199.7.91.13#53
Jan 13 08:54:50 unbound[83681:0] info: query response was nodata ANSWER
Jan 13 08:54:50 unbound[83681:0] info: response for profile.accounts.firefox.com. AAAA IN
Jan 13 08:54:50 unbound[83681:0] info: reply from <.> 199.7.91.13#53
Jan 13 08:54:50 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:50 unbound[83681:0] info: response for profile.accounts.firefox.com. AAAA IN
Jan 13 08:54:50 unbound[83681:0] info: reply from <.> 192.5.5.241#53
Jan 13 08:54:50 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:50 unbound[83681:0] info: response for profile.accounts.firefox.com. AAAA IN
Jan 13 08:54:50 unbound[83681:0] info: reply from <.> 198.41.0.4#53
Jan 13 08:54:50 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:50 unbound[83681:0] info: response for profile.accounts.firefox.com. AAAA IN
Jan 13 08:54:50 unbound[83681:0] info: reply from <.> 170.247.170.2#53
Jan 13 08:54:50 unbound[83681:0] info: query response was nodata ANSWER
Jan 13 08:54:55 unbound[83681:0] info: resolving www.redditstatic.com. A IN
Jan 13 08:54:55 unbound[83681:0] info: response for www.redditstatic.com. A IN
Jan 13 08:54:55 unbound[83681:0] info: reply from <.> 192.36.148.17#53
Jan 13 08:54:55 unbound[83681:0] info: query response was nodata ANSWER
Jan 13 08:54:55 unbound[83681:0] info: response for www.redditstatic.com. A IN
Jan 13 08:54:55 unbound[83681:0] info: reply from <.> 193.0.14.129#53
Jan 13 08:54:55 unbound[83681:0] info: query response was nodata ANSWER
Jan 13 08:54:55 unbound[83681:0] info: response for www.redditstatic.com. A IN
Jan 13 08:54:55 unbound[83681:0] info: reply from <.> 192.36.148.17#53
Jan 13 08:54:55 unbound[83681:0] info: query response was CNAME
Jan 13 08:54:55 unbound[83681:0] info: resolving www.redditstatic.com. A IN
Jan 13 08:54:55 unbound[83681:0] info: response for www.redditstatic.com. A IN
Jan 13 08:54:55 unbound[83681:0] info: reply from <.> 198.41.0.4#53
Jan 13 08:54:55 unbound[83681:0] info: query response was nodata ANSWER
Jan 13 08:54:55 unbound[83681:0] info: response for www.redditstatic.com. A IN
Jan 13 08:54:55 unbound[83681:0] info: reply from <.> 192.112.36.4#53
Jan 13 08:54:55 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:55 unbound[83681:0] info: response for www.redditstatic.com. A IN
Jan 13 08:54:55 unbound[83681:0] info: reply from <.> 198.41.0.4#53
Jan 13 08:54:55 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:55 unbound[83681:0] info: response for www.redditstatic.com. A IN
Jan 13 08:54:55 unbound[83681:0] info: reply from <.> 192.33.4.12#53
Jan 13 08:54:55 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:55 unbound[83681:0] info: response for www.redditstatic.com. A IN
Jan 13 08:54:55 unbound[83681:0] info: reply from <.> 198.41.0.4#53
Jan 13 08:54:55 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:56 unbound[83681:0] info: resolving external-preview.redd.it. A IN
Jan 13 08:54:56 unbound[83681:0] info: response for external-preview.redd.it. A IN
Jan 13 08:54:56 unbound[83681:0] info: reply from <.> 192.33.4.12#53
Jan 13 08:54:56 unbound[83681:0] info: query response was nodata ANSWER
Jan 13 08:54:56 unbound[83681:0] info: response for external-preview.redd.it. A IN
Jan 13 08:54:56 unbound[83681:0] info: reply from <.> 192.36.148.17#53
Jan 13 08:54:56 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:56 unbound[83681:0] info: response for external-preview.redd.it. A IN
Jan 13 08:54:56 unbound[83681:0] info: reply from <.> 192.5.5.241#53
Jan 13 08:54:56 unbound[83681:0] info: query response was CNAME
Jan 13 08:54:56 unbound[83681:0] info: resolving external-preview.redd.it. A IN
Jan 13 08:54:56 unbound[83681:0] info: resolving styles.redditmedia.com. A IN
Jan 13 08:54:56 unbound[83681:0] info: response for styles.redditmedia.com. A IN
Jan 13 08:54:56 unbound[83681:0] info: reply from <.> 198.97.190.53#53
Jan 13 08:54:56 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:56 unbound[83681:0] info: response for styles.redditmedia.com. A IN
Jan 13 08:54:56 unbound[83681:0] info: reply from <.> 192.58.128.30#53
Jan 13 08:54:56 unbound[83681:0] info: query response was CNAME
Jan 13 08:54:56 unbound[83681:0] info: resolving styles.redditmedia.com. A IN
Jan 13 08:54:56 unbound[83681:0] info: resolving www.google.com. A IN
Jan 13 08:54:56 unbound[83681:0] info: response for www.google.com. A IN
Jan 13 08:54:56 unbound[83681:0] info: reply from <.> 199.7.83.42#53
Jan 13 08:54:56 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:56 unbound[83681:0] info: resolving www.google.com. AAAA IN
Jan 13 08:54:56 unbound[83681:0] info: response for www.google.com. AAAA IN
Jan 13 08:54:56 unbound[83681:0] info: reply from <.> 199.7.91.13#53
Jan 13 08:54:56 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:57 unbound[83681:0] info: resolving v.redd.it. A IN
Jan 13 08:54:57 unbound[83681:0] info: response for v.redd.it. A IN
Jan 13 08:54:57 unbound[83681:0] info: reply from <.> 192.33.4.12#53
Jan 13 08:54:57 unbound[83681:0] info: query response was CNAME
Jan 13 08:54:57 unbound[83681:0] info: resolving v.redd.it. A IN
Jan 13 08:54:57 unbound[83681:0] info: resolving www.gstatic.com. AAAA IN
Jan 13 08:54:57 unbound[83681:0] info: response for www.gstatic.com. AAAA IN
Jan 13 08:54:57 unbound[83681:0] info: reply from <.> 192.36.148.17#53
Jan 13 08:54:57 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:57 unbound[83681:0] info: response for www.gstatic.com. AAAA IN
Jan 13 08:54:57 unbound[83681:0] info: reply from <.> 202.12.27.33#53
Jan 13 08:54:57 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:57 unbound[83681:0] info: response for www.gstatic.com. AAAA IN
Jan 13 08:54:57 unbound[83681:0] info: reply from <.> 192.36.148.17#53
Jan 13 08:54:57 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:58 unbound[83681:0] info: resolving i.redd.it. A IN
Jan 13 08:54:58 unbound[83681:0] info: response for i.redd.it. A IN
Jan 13 08:54:58 unbound[83681:0] info: reply from <.> 192.203.230.10#53
Jan 13 08:54:58 unbound[83681:0] info: query response was CNAME
Jan 13 08:54:58 unbound[83681:0] info: resolving i.redd.it. A IN
Jan 13 08:54:59 unbound[83681:0] info: resolving api.connect.raspberrypi.com. A IN
Jan 13 08:54:59 unbound[83681:0] info: response for api.connect.raspberrypi.com. A IN
Jan 13 08:54:59 unbound[83681:0] info: reply from <.> 202.12.27.33#53
Jan 13 08:54:59 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:59 unbound[83681:0] info: response for api.connect.raspberrypi.com. A IN
Jan 13 08:54:59 unbound[83681:0] info: reply from <.> 192.203.230.10#53
Jan 13 08:54:59 unbound[83681:0] info: query response was ANSWER
Jan 13 08:54:59 unbound[83681:0] info: response for api.connect.raspberrypi.com. A IN
Jan 13 08:54:59 unbound[83681:0] info: reply from <.> 198.97.190.53#53
Jan 13 08:54:59 unbound[83681:0] info: query response was CNAME
Jan 13 08:54:59 unbound[83681:0] info: resolving api.connect.raspberrypi.com. A IN
Jan 13 08:55:02 unbound[83681:0] info: resolving chat.google.com. AAAA IN
Jan 13 08:55:02 unbound[83681:0] info: response for chat.google.com. AAAA IN
Jan 13 08:55:02 unbound[83681:0] info: reply from <.> 170.247.170.2#53
Jan 13 08:55:02 unbound[83681:0] info: query response was nodata ANSWER
Jan 13 08:55:02 unbound[83681:0] info: response for chat.google.com. AAAA IN
Jan 13 08:55:02 unbound[83681:0] info: reply from <.> 202.12.27.33#53
Jan 13 08:55:02 unbound[83681:0] info: query response was ANSWER
Jan 13 08:55:02 unbound[83681:0] info: response for chat.google.com. AAAA IN
Jan 13 08:55:02 unbound[83681:0] info: reply from <.> 199.7.83.42#53
Jan 13 08:55:02 unbound[83681:0] info: query response was ANSWER
Jan 13 08:55:07 unbound[83681:0] info: resolving prod-dynamite-prod-03-us-signaler-pa.clients6.google.com. A IN
Jan 13 08:55:07 unbound[83681:0] info: response for prod-dynamite-prod-03-us-signaler-pa.clients6.google.com. A IN
Jan 13 08:55:07 unbound[83681:0] info: reply from <.> 199.7.91.13#53
Jan 13 08:55:07 unbound[83681:0] info: query response was nodata ANSWER
Jan 13 08:55:07 unbound[83681:0] info: response for prod-dynamite-prod-03-us-signaler-pa.clients6.google.com. A IN
Jan 13 08:55:07 unbound[83681:0] info: reply from <.> 198.41.0.4#53
Jan 13 08:55:07 unbound[83681:0] info: query response was CNAME
Jan 13 08:55:07 unbound[83681:0] info: resolving prod-dynamite-prod-03-us-signaler-pa.clients6.google.com. A IN
Jan 13 08:55:07 unbound[83681:0] info: response for prod-dynamite-prod-03-us-signaler-pa.clients6.google.com. A IN
Jan 13 08:55:07 unbound[83681:0] info: reply from <.> 199.7.83.42#53
Jan 13 08:55:07 unbound[83681:0] info: query response was ANSWER
Your recent log lines don't seem to contain any of your offending domains?
Your current log still shows those REC_LAME replies, suggesting some kind of upstream interference.
While it potentially may contribute to it, this isn't your original issue - but it certainly impacts DNS resolution negatively. At the least, it would slow down DNS resolution., as unbound would continue to get valid authoritative replies from each of the root zone (<.>
) servers, and will only fall back to consider those REC_LAME responses after it has tried all of them unsuccessfully.
Would your firewall force DNS redirects to a local or public DNS servers?
As for a VPN service gateway:
Running a local VPN server to allow remote device connections to your home network is different from routing your home network's traffic through the services of a (paid) VPN provider.
The latter may interfere with unbound's resolution, as VPN service providers commonly would force DNS traffic to their own DNS servers, in attempt to prevent DNS leakages.
I have a SonicWall firewall and these are what I suspect the relevant DNS settings. It seems like everything seems OK? Is there some other settings I should check on the firewall? 192.168.101.189 is my Pihole.
I can't really comment on that, as I don't know that product at all.
Is that firewall also acting as your router/gateway?
If so, I'd wonder whether there would be a DHCP option for distributing a local DNS server pushed to DHCP clients, and whether that DNS pane you show concerns the firewall's upstreams (i.e. the DNS server the firewall itself would use), and I generally wonder what the DNS Proxy would be for.
Is that firewall also acting as your router/gateway?
Yes.
Here is the DHCP screen.
if I click the configure button to the right of the dynamic leases, it shows this screen. Considering what the DNS screen showed previously in my last reply, this seems okay, right?