In my OP I did, yes. But I have disabled it afterwards and changed upstream servers to Cloudflare (1st and 3rd checkbox) to avoid any weirdness that comes from unbound doing it's own caching and prefetching. But as you can see in my replies, the issue persists in either case.
You can even see that difference in my log above. The CNAME
reply for the A
query was cached and had a response time of 0 but the one for the AAAA
query was not cached and had a response time of 42.2 ms.
The issue also doesn't happen consistently, that's why every screenshot is of a different domain.
Nvm, managed to trigger www.youtube.com
again (just opened a private window of Firefox and went to that domain, took a couple tries though).
pihole.log
Oct 11 22:32:25 dnsmasq[18362]: 1260 192.168.178.20/59780 query[A] www.youtube.com from 192.168.178.20
Oct 11 22:32:25 dnsmasq[18362]: 1260 192.168.178.20/59780 cached www.youtube.com is <CNAME>
Oct 11 22:32:25 dnsmasq[18362]: 1260 192.168.178.20/59780 forwarded www.youtube.com to 1.1.1.1
Oct 11 22:32:25 dnsmasq[18362]: 1261 192.168.178.20/58875 query[AAAA] www.youtube.com from 192.168.178.20
Oct 11 22:32:25 dnsmasq[18362]: 1261 192.168.178.20/58875 forwarded www.youtube.com to 1.1.1.1
Oct 11 22:32:25 dnsmasq[18362]: 1260 192.168.178.20/59780 reply www.youtube.com is <CNAME>
Oct 11 22:32:25 dnsmasq[18362]: 1260 192.168.178.20/59780 reply youtube-ui.l.google.com is 142.250.185.78
Oct 11 22:32:25 dnsmasq[18362]: 1260 192.168.178.20/59780 reply youtube-ui.l.google.com is 142.250.185.206
Oct 11 22:32:25 dnsmasq[18362]: 1260 192.168.178.20/59780 reply youtube-ui.l.google.com is 142.250.184.206
Oct 11 22:32:25 dnsmasq[18362]: 1260 192.168.178.20/59780 reply youtube-ui.l.google.com is 142.250.186.142
Oct 11 22:32:25 dnsmasq[18362]: 1260 192.168.178.20/59780 reply youtube-ui.l.google.com is 142.250.185.110
Oct 11 22:32:25 dnsmasq[18362]: 1260 192.168.178.20/59780 reply youtube-ui.l.google.com is 142.250.186.174
Oct 11 22:32:25 dnsmasq[18362]: 1260 192.168.178.20/59780 reply youtube-ui.l.google.com is 142.250.185.238
Oct 11 22:32:25 dnsmasq[18362]: 1260 192.168.178.20/59780 reply youtube-ui.l.google.com is 172.217.16.142
Oct 11 22:32:25 dnsmasq[18362]: 1260 192.168.178.20/59780 reply youtube-ui.l.google.com is 142.250.181.238
Oct 11 22:32:25 dnsmasq[18362]: 1260 192.168.178.20/59780 reply youtube-ui.l.google.com is 172.217.18.110
Oct 11 22:32:25 dnsmasq[18362]: 1260 192.168.178.20/59780 reply youtube-ui.l.google.com is 172.217.23.110
Oct 11 22:32:25 dnsmasq[18362]: 1260 192.168.178.20/59780 reply youtube-ui.l.google.com is 142.250.184.238
Oct 11 22:32:25 dnsmasq[18362]: 1260 192.168.178.20/59780 reply youtube-ui.l.google.com is 142.250.185.174
Oct 11 22:32:25 dnsmasq[18362]: 1260 192.168.178.20/59780 reply youtube-ui.l.google.com is 142.250.185.142
Oct 11 22:32:25 dnsmasq[18362]: 1260 192.168.178.20/59780 reply youtube-ui.l.google.com is 216.58.212.142
Oct 11 22:32:25 dnsmasq[18362]: 1260 192.168.178.20/59780 reply youtube-ui.l.google.com is 142.250.186.110
Oct 11 22:32:25 dnsmasq[18362]: 1261 192.168.178.20/58875 reply www.youtube.com is <CNAME>
Oct 11 22:32:25 dnsmasq[18362]: 1261 192.168.178.20/58875 reply youtube-ui.l.google.com is 2a00:1450:4001:831::200e
Oct 11 22:32:25 dnsmasq[18362]: 1261 192.168.178.20/58875 reply youtube-ui.l.google.com is 2a00:1450:4001:813::200e
Oct 11 22:32:25 dnsmasq[18362]: 1261 192.168.178.20/58875 reply youtube-ui.l.google.com is 2a00:1450:4001:812::200e
Oct 11 22:32:25 dnsmasq[18362]: 1261 192.168.178.20/58875 reply youtube-ui.l.google.com is 2a00:1450:4001:811::200e
pihole-FTL.log
[2021-10-11 22:32:25.148 18362M] Processing FTL hook from src/dnsmasq/forward.c:1575...
[2021-10-11 22:32:25.148 18362M] Flags: F_FORWARD F_IPV4 F_QUERY
[2021-10-11 22:32:25.149 18362M] **** new UDP IPv4 query[A] query "www.youtube.com" from wlan0:192.168.178.20#59780 (ID 1260, FTL 36380, src/dnsmasq/forward.c:1577)
[2021-10-11 22:32:25.149 18362M] www.youtube.com is known as not to be blocked
[2021-10-11 22:32:25.150 18362M] Processing FTL hook from src/dnsmasq/rfc1035.c:1502...
[2021-10-11 22:32:25.150 18362M] Flags: F_FORWARD F_CNAME
[2021-10-11 22:32:25.150 18362M] **** got cache reply: www.youtube.com is (CNAME) (ID 1260, src/dnsmasq/rfc1035.c:1502)
[2021-10-11 22:32:25.150 18362M] Set reply to CNAME (3) in src/dnsmasq_interface.c:2015
[2021-10-11 22:32:25.152 18362M] Processing FTL hook from src/dnsmasq/forward.c:522...
[2021-10-11 22:32:25.152 18362M] Flags: F_FORWARD F_IPV4 F_SERVER
[2021-10-11 22:32:25.152 18362M] **** forwarded www.youtube.com to 1.1.1.1#53 (ID 1260, src/dnsmasq/forward.c:522)
[2021-10-11 22:32:25.153 18362M] Processing FTL hook from src/dnsmasq/forward.c:1575...
[2021-10-11 22:32:25.153 18362M] Flags: F_FORWARD F_IPV4 F_QUERY
[2021-10-11 22:32:25.154 18362M] **** new UDP IPv4 query[AAAA] query "www.youtube.com" from wlan0:192.168.178.20#58875 (ID 1261, FTL 36381, src/dnsmasq/forward.c:1577)
[2021-10-11 22:32:25.154 18362M] www.youtube.com is known as not to be blocked
[2021-10-11 22:32:25.155 18362M] Processing FTL hook from src/dnsmasq/forward.c:522...
[2021-10-11 22:32:25.156 18362M] Flags: F_FORWARD F_IPV4 F_SERVER
[2021-10-11 22:32:25.156 18362M] **** forwarded www.youtube.com to 1.1.1.1#53 (ID 1261, src/dnsmasq/forward.c:522)
[2021-10-11 22:32:25.186 18362M] FTL_CNAME called with: src = (null), dst = www.youtube.com, id = 1260
[2021-10-11 22:32:25.187 18362M] www.youtube.com is known as not to be blocked
[2021-10-11 22:32:25.187 18362M] Query 1260: CNAME www.youtube.com
[2021-10-11 22:32:25.188 18362M] Processing FTL hook from src/dnsmasq/rfc1035.c:782...
[2021-10-11 22:32:25.189 18362M] Flags: F_FORWARD F_CNAME F_UPSTREAM
[2021-10-11 22:32:25.189 18362M] **** got upstream reply from 1.1.1.1#53: www.youtube.com is (CNAME) (ID 1260, src/dnsmasq/rfc1035.c:782)
[2021-10-11 22:32:25.190 18362M] FTL_CNAME called with: src = www.youtube.com, dst = youtube-ui.l.google.com, id = 1260
[2021-10-11 22:32:25.190 18362M] youtube-ui.l.google.com is known as not to be blocked
[2021-10-11 22:32:25.190 18362M] Query 1260: CNAME www.youtube.com ---> youtube-ui.l.google.com
[2021-10-11 22:32:25.191 18362M] Processing FTL hook from src/dnsmasq/rfc1035.c:893...
[2021-10-11 22:32:25.191 18362M] Flags: F_FORWARD F_IPV4 F_UPSTREAM
[2021-10-11 22:32:25.191 18362M] **** got upstream reply from 1.1.1.1#53: youtube-ui.l.google.com is 142.250.185.78 (ID 1260, src/dnsmasq/rfc1035.c:893)
[2021-10-11 22:32:25.192 18362M] FTL_CNAME called with: src = (null), dst = youtube-ui.l.google.com, id = 1260
[2021-10-11 22:32:25.192 18362M] youtube-ui.l.google.com is known as not to be blocked
[2021-10-11 22:32:25.192 18362M] Query 1260: CNAME youtube-ui.l.google.com
[2021-10-11 22:32:25.193 18362M] Processing FTL hook from src/dnsmasq/rfc1035.c:893...
[2021-10-11 22:32:25.193 18362M] Flags: F_FORWARD F_IPV4 F_UPSTREAM
[2021-10-11 22:32:25.193 18362M] **** got upstream reply from 1.1.1.1#53: youtube-ui.l.google.com is 142.250.185.206 (ID 1260, src/dnsmasq/rfc1035.c:893)
[2021-10-11 22:32:25.194 18362M] FTL_CNAME called with: src = (null), dst = youtube-ui.l.google.com, id = 1260
[2021-10-11 22:32:25.194 18362M] youtube-ui.l.google.com is known as not to be blocked
[2021-10-11 22:32:25.195 18362M] Query 1260: CNAME youtube-ui.l.google.com
[2021-10-11 22:32:25.195 18362M] Processing FTL hook from src/dnsmasq/rfc1035.c:893...
[2021-10-11 22:32:25.195 18362M] Flags: F_FORWARD F_IPV4 F_UPSTREAM
[2021-10-11 22:32:25.195 18362M] **** got upstream reply from 1.1.1.1#53: youtube-ui.l.google.com is 142.250.184.206 (ID 1260, src/dnsmasq/rfc1035.c:893)
[2021-10-11 22:32:25.196 18362M] FTL_CNAME called with: src = (null), dst = youtube-ui.l.google.com, id = 1260
[2021-10-11 22:32:25.196 18362M] youtube-ui.l.google.com is known as not to be blocked
[2021-10-11 22:32:25.197 18362M] Query 1260: CNAME youtube-ui.l.google.com
[2021-10-11 22:32:25.197 18362M] Processing FTL hook from src/dnsmasq/rfc1035.c:893...
[2021-10-11 22:32:25.198 18362M] Flags: F_FORWARD F_IPV4 F_UPSTREAM
[2021-10-11 22:32:25.198 18362M] **** got upstream reply from 1.1.1.1#53: youtube-ui.l.google.com is 142.250.186.142 (ID 1260, src/dnsmasq/rfc1035.c:893)
[2021-10-11 22:32:25.198 18362M] FTL_CNAME called with: src = (null), dst = youtube-ui.l.google.com, id = 1260
[2021-10-11 22:32:25.199 18362M] youtube-ui.l.google.com is known as not to be blocked
[2021-10-11 22:32:25.199 18362M] Query 1260: CNAME youtube-ui.l.google.com
[2021-10-11 22:32:25.199 18362M] Processing FTL hook from src/dnsmasq/rfc1035.c:893...
[2021-10-11 22:32:25.200 18362M] Flags: F_FORWARD F_IPV4 F_UPSTREAM
[2021-10-11 22:32:25.200 18362M] **** got upstream reply from 1.1.1.1#53: youtube-ui.l.google.com is 142.250.185.110 (ID 1260, src/dnsmasq/rfc1035.c:893)
[2021-10-11 22:32:25.201 18362M] FTL_CNAME called with: src = (null), dst = youtube-ui.l.google.com, id = 1260
[2021-10-11 22:32:25.201 18362M] youtube-ui.l.google.com is known as not to be blocked
[2021-10-11 22:32:25.201 18362M] Query 1260: CNAME youtube-ui.l.google.com
[2021-10-11 22:32:25.202 18362M] Processing FTL hook from src/dnsmasq/rfc1035.c:893...
[2021-10-11 22:32:25.202 18362M] Flags: F_FORWARD F_IPV4 F_UPSTREAM
[2021-10-11 22:32:25.202 18362M] **** got upstream reply from 1.1.1.1#53: youtube-ui.l.google.com is 142.250.186.174 (ID 1260, src/dnsmasq/rfc1035.c:893)
[2021-10-11 22:32:25.203 18362M] FTL_CNAME called with: src = (null), dst = youtube-ui.l.google.com, id = 1260
[2021-10-11 22:32:25.203 18362M] youtube-ui.l.google.com is known as not to be blocked
[2021-10-11 22:32:25.203 18362M] Query 1260: CNAME youtube-ui.l.google.com
[2021-10-11 22:32:25.204 18362M] Processing FTL hook from src/dnsmasq/rfc1035.c:893...
[2021-10-11 22:32:25.204 18362M] Flags: F_FORWARD F_IPV4 F_UPSTREAM
[2021-10-11 22:32:25.204 18362M] **** got upstream reply from 1.1.1.1#53: youtube-ui.l.google.com is 142.250.185.238 (ID 1260, src/dnsmasq/rfc1035.c:893)
[2021-10-11 22:32:25.205 18362M] FTL_CNAME called with: src = (null), dst = youtube-ui.l.google.com, id = 1260
[2021-10-11 22:32:25.205 18362M] youtube-ui.l.google.com is known as not to be blocked
[2021-10-11 22:32:25.205 18362M] Query 1260: CNAME youtube-ui.l.google.com
[2021-10-11 22:32:25.206 18362M] Processing FTL hook from src/dnsmasq/rfc1035.c:893...
[2021-10-11 22:32:25.206 18362M] Flags: F_FORWARD F_IPV4 F_UPSTREAM
[2021-10-11 22:32:25.206 18362M] **** got upstream reply from 1.1.1.1#53: youtube-ui.l.google.com is 172.217.16.142 (ID 1260, src/dnsmasq/rfc1035.c:893)
[2021-10-11 22:32:25.207 18362M] FTL_CNAME called with: src = (null), dst = youtube-ui.l.google.com, id = 1260
[2021-10-11 22:32:25.207 18362M] youtube-ui.l.google.com is known as not to be blocked
[2021-10-11 22:32:25.208 18362M] Query 1260: CNAME youtube-ui.l.google.com
[2021-10-11 22:32:25.208 18362M] Processing FTL hook from src/dnsmasq/rfc1035.c:893...
[2021-10-11 22:32:25.210 18362M] Flags: F_FORWARD F_IPV4 F_UPSTREAM
[2021-10-11 22:32:25.210 18362M] **** got upstream reply from 1.1.1.1#53: youtube-ui.l.google.com is 142.250.181.238 (ID 1260, src/dnsmasq/rfc1035.c:893)
[2021-10-11 22:32:25.211 18362M] FTL_CNAME called with: src = (null), dst = youtube-ui.l.google.com, id = 1260
[2021-10-11 22:32:25.211 18362M] youtube-ui.l.google.com is known as not to be blocked
[2021-10-11 22:32:25.212 18362M] Query 1260: CNAME youtube-ui.l.google.com
[2021-10-11 22:32:25.212 18362M] Processing FTL hook from src/dnsmasq/rfc1035.c:893...
[2021-10-11 22:32:25.212 18362M] Flags: F_FORWARD F_IPV4 F_UPSTREAM
[2021-10-11 22:32:25.213 18362M] **** got upstream reply from 1.1.1.1#53: youtube-ui.l.google.com is 172.217.18.110 (ID 1260, src/dnsmasq/rfc1035.c:893)
[2021-10-11 22:32:25.213 18362M] FTL_CNAME called with: src = (null), dst = youtube-ui.l.google.com, id = 1260
[2021-10-11 22:32:25.213 18362M] youtube-ui.l.google.com is known as not to be blocked
[2021-10-11 22:32:25.214 18362M] Query 1260: CNAME youtube-ui.l.google.com
[2021-10-11 22:32:25.214 18362M] Processing FTL hook from src/dnsmasq/rfc1035.c:893...
[2021-10-11 22:32:25.214 18362M] Flags: F_FORWARD F_IPV4 F_UPSTREAM
[2021-10-11 22:32:25.215 18362M] **** got upstream reply from 1.1.1.1#53: youtube-ui.l.google.com is 172.217.23.110 (ID 1260, src/dnsmasq/rfc1035.c:893)
[2021-10-11 22:32:25.215 18362M] FTL_CNAME called with: src = (null), dst = youtube-ui.l.google.com, id = 1260
[2021-10-11 22:32:25.215 18362M] youtube-ui.l.google.com is known as not to be blocked
[2021-10-11 22:32:25.216 18362M] Query 1260: CNAME youtube-ui.l.google.com
[2021-10-11 22:32:25.216 18362M] Processing FTL hook from src/dnsmasq/rfc1035.c:893...
[2021-10-11 22:32:25.216 18362M] Flags: F_FORWARD F_IPV4 F_UPSTREAM
[2021-10-11 22:32:25.217 18362M] **** got upstream reply from 1.1.1.1#53: youtube-ui.l.google.com is 142.250.184.238 (ID 1260, src/dnsmasq/rfc1035.c:893)
[2021-10-11 22:32:25.217 18362M] FTL_CNAME called with: src = (null), dst = youtube-ui.l.google.com, id = 1260
[2021-10-11 22:32:25.218 18362M] youtube-ui.l.google.com is known as not to be blocked
[2021-10-11 22:32:25.218 18362M] Query 1260: CNAME youtube-ui.l.google.com
[2021-10-11 22:32:25.218 18362M] Processing FTL hook from src/dnsmasq/rfc1035.c:893...
[2021-10-11 22:32:25.219 18362M] Flags: F_FORWARD F_IPV4 F_UPSTREAM
[2021-10-11 22:32:25.219 18362M] **** got upstream reply from 1.1.1.1#53: youtube-ui.l.google.com is 142.250.185.174 (ID 1260, src/dnsmasq/rfc1035.c:893)
[2021-10-11 22:32:25.220 18362M] FTL_CNAME called with: src = (null), dst = youtube-ui.l.google.com, id = 1260
[2021-10-11 22:32:25.220 18362M] youtube-ui.l.google.com is known as not to be blocked
[2021-10-11 22:32:25.220 18362M] Query 1260: CNAME youtube-ui.l.google.com
[2021-10-11 22:32:25.221 18362M] Processing FTL hook from src/dnsmasq/rfc1035.c:893...
[2021-10-11 22:32:25.221 18362M] Flags: F_FORWARD F_IPV4 F_UPSTREAM
[2021-10-11 22:32:25.221 18362M] **** got upstream reply from 1.1.1.1#53: youtube-ui.l.google.com is 142.250.185.142 (ID 1260, src/dnsmasq/rfc1035.c:893)
[2021-10-11 22:32:25.222 18362M] FTL_CNAME called with: src = (null), dst = youtube-ui.l.google.com, id = 1260
[2021-10-11 22:32:25.222 18362M] youtube-ui.l.google.com is known as not to be blocked
[2021-10-11 22:32:25.222 18362M] Query 1260: CNAME youtube-ui.l.google.com
[2021-10-11 22:32:25.223 18362M] Processing FTL hook from src/dnsmasq/rfc1035.c:893...
[2021-10-11 22:32:25.223 18362M] Flags: F_FORWARD F_IPV4 F_UPSTREAM
[2021-10-11 22:32:25.223 18362M] **** got upstream reply from 1.1.1.1#53: youtube-ui.l.google.com is 216.58.212.142 (ID 1260, src/dnsmasq/rfc1035.c:893)
[2021-10-11 22:32:25.224 18362M] FTL_CNAME called with: src = (null), dst = youtube-ui.l.google.com, id = 1260
[2021-10-11 22:32:25.224 18362M] youtube-ui.l.google.com is known as not to be blocked
[2021-10-11 22:32:25.224 18362M] Query 1260: CNAME youtube-ui.l.google.com
[2021-10-11 22:32:25.225 18362M] Processing FTL hook from src/dnsmasq/rfc1035.c:893...
[2021-10-11 22:32:25.225 18362M] Flags: F_FORWARD F_IPV4 F_UPSTREAM
[2021-10-11 22:32:25.225 18362M] **** got upstream reply from 1.1.1.1#53: youtube-ui.l.google.com is 142.250.186.110 (ID 1260, src/dnsmasq/rfc1035.c:893)
[2021-10-11 22:32:25.227 18362M] FTL_CNAME called with: src = (null), dst = www.youtube.com, id = 1261
[2021-10-11 22:32:25.228 18362M] www.youtube.com is known as not to be blocked
[2021-10-11 22:32:25.228 18362M] Query 1261: CNAME www.youtube.com
[2021-10-11 22:32:25.229 18362M] Processing FTL hook from src/dnsmasq/rfc1035.c:782...
[2021-10-11 22:32:25.229 18362M] Flags: F_FORWARD F_CNAME F_UPSTREAM
[2021-10-11 22:32:25.229 18362M] **** got upstream reply from 1.1.1.1#53: www.youtube.com is (CNAME) (ID 1261, src/dnsmasq/rfc1035.c:782)
[2021-10-11 22:32:25.230 18362M] Set reply to CNAME (3) in src/dnsmasq_interface.c:2088
[2021-10-11 22:32:25.230 18362M] FTL_CNAME called with: src = www.youtube.com, dst = youtube-ui.l.google.com, id = 1261
[2021-10-11 22:32:25.230 18362M] youtube-ui.l.google.com is known as not to be blocked
[2021-10-11 22:32:25.231 18362M] Query 1261: CNAME www.youtube.com ---> youtube-ui.l.google.com
[2021-10-11 22:32:25.231 18362M] Processing FTL hook from src/dnsmasq/rfc1035.c:893...
[2021-10-11 22:32:25.231 18362M] Flags: F_FORWARD F_IPV6 F_UPSTREAM
[2021-10-11 22:32:25.231 18362M] **** got upstream reply from 1.1.1.1#53: youtube-ui.l.google.com is 2a00:1450:4001:831::200e (ID 1261, src/dnsmasq/rfc1035.c:893)
[2021-10-11 22:32:25.232 18362M] FTL_CNAME called with: src = (null), dst = youtube-ui.l.google.com, id = 1261
[2021-10-11 22:32:25.232 18362M] youtube-ui.l.google.com is known as not to be blocked
[2021-10-11 22:32:25.232 18362M] Query 1261: CNAME youtube-ui.l.google.com
[2021-10-11 22:32:25.232 18362M] Processing FTL hook from src/dnsmasq/rfc1035.c:893...
[2021-10-11 22:32:25.233 18362M] Flags: F_FORWARD F_IPV6 F_UPSTREAM
[2021-10-11 22:32:25.233 18362M] **** got upstream reply from 1.1.1.1#53: youtube-ui.l.google.com is 2a00:1450:4001:813::200e (ID 1261, src/dnsmasq/rfc1035.c:893)
[2021-10-11 22:32:25.233 18362M] FTL_CNAME called with: src = (null), dst = youtube-ui.l.google.com, id = 1261
[2021-10-11 22:32:25.234 18362M] youtube-ui.l.google.com is known as not to be blocked
[2021-10-11 22:32:25.234 18362M] Query 1261: CNAME youtube-ui.l.google.com
[2021-10-11 22:32:25.234 18362M] Processing FTL hook from src/dnsmasq/rfc1035.c:893...
[2021-10-11 22:32:25.234 18362M] Flags: F_FORWARD F_IPV6 F_UPSTREAM
[2021-10-11 22:32:25.234 18362M] **** got upstream reply from 1.1.1.1#53: youtube-ui.l.google.com is 2a00:1450:4001:812::200e (ID 1261, src/dnsmasq/rfc1035.c:893)
[2021-10-11 22:32:25.235 18362M] FTL_CNAME called with: src = (null), dst = youtube-ui.l.google.com, id = 1261
[2021-10-11 22:32:25.235 18362M] youtube-ui.l.google.com is known as not to be blocked
[2021-10-11 22:32:25.235 18362M] Query 1261: CNAME youtube-ui.l.google.com
[2021-10-11 22:32:25.235 18362M] Processing FTL hook from src/dnsmasq/rfc1035.c:893...
[2021-10-11 22:32:25.236 18362M] Flags: F_FORWARD F_IPV6 F_UPSTREAM
[2021-10-11 22:32:25.236 18362M] **** got upstream reply from 1.1.1.1#53: youtube-ui.l.google.com is 2a00:1450:4001:811::200e (ID 1261, src/dnsmasq/rfc1035.c:893)