Please follow the below template, it will help us to help you!
Expected Behaviour:
After upgrading from v5 to v6, Raspberry Pi should be able to resolve DNS requests without issue.
- Model: Raspberry Pi 3 Model B Rev 1.2
- OS: Raspbian GNU/Linux 11 (bullseye)
- Pi-hole Versions:
- Core version is v6.0.4 (Latest: N/A)
- Web version is v6.0.1 (Latest: N/A)
- FTL version is v6.0.2 (Latest: N/A)
Actual Behaviour:
All DNS requests made by the Raspberry Pi itself failed. For example, running ping google.com would instantly fail, but ping 8.8.8.8 would connect fine.
Troubleshooting Comments
I had upgraded a functional Pi-hole installation last night from v5 to v6, but I noticed devices immediately couldn't connect to the internet. I swapped my router to use a backup DNS while I troubleshooted and quickly found out my Raspberry Pi wasn't resolving any DNS requests on itself. The installation was made with no modifications other than configuring it to use unbound via the official guide.
I ran sudo nano /etc/dhcpcd.conf to make sure the Pi wasn't relying on 127.0.0.1#5335 just in case it was Pi-hole by temporarily switching it to static domain_name_servers=1.1.1.1. Even after rebooting and restarting the service, DNS still wasn't working.
I then ran cat /etc/resolv.conf and saw that it still only had nameserver 127.0.0.1 as its single entry despite already editing dhcpcd.conf with the backup DNSes. I manually added nameserver 1.1.1.1 and nameserver 8.8.4.4 to resolv.conf (not a long-term solution, I know), and DNS queries immediately started working again. Running command resolvectl status returns Failed to get global data: Unit dbus-org.freedesktop.resolve1.service not found.
I'm not super knowledgeable about Linux/pi-hole so I'm afraid to modify things too much on my own. I don't know how much of this, if any, is due to following the aforementioned unbound guide. I found a semi-related Stack Exchange post that suggested running sudo systemctl enable systemd-resolved.service and then
sudo systemctl start systemd-resolved.service, but I haven't done so yet for fear of messing things up further.
Debug Token:
https://tricorder.pi-hole.net/b2BdrwyS/
(If you want, I can also remove the two nameservers I added to resolve.conf and re-run the debugger, but I'm not sure how I'd upload the log since I wouldn't be able to connect to the Internet from the Raspberrry Pi.)