I wanted to update pi hole on the Raspberry Pi (pihole -up). Then I noticed that I don't have an internet connection.
The admin console / GUI is reachable. I can access the Raspi via SSH or VNC in the local network.
The name resolution on the Raspberry does not work.
I executed pihole -d:
*** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
dig: '' is not a legal name (unexpected end of input)
[✗] Failed to resolve via localhost (127.0.0.1)
dig: '' is not a legal name (unexpected end of input)
[✗] Failed to resolve via Pi-hole (192.168.99.4)
[✓] doubleclick.com is 216.58.215.238 via a remote, public DNS server (8.8.8.8)
*** [ DIAGNOSING ]: Pi-hole processes
[✓] lighttpd daemon is active
[✓] pihole-FTL daemon is active
The file /etc/dhcpcd.conf contains the necessary information.
Thank's for the fast reply.
OK, I can upload a debug log. Do I have to provide the ID?
Currently I have lost the connection via VNC and SSH. I have to set up everything on site and then run pihole -g as well and upload the log.
I've been gone two days now. I'll get back to you after.
Have you edited this line manually ?
Why not leave it at default 127.0.0.1 on the loopback interface named lo.
That way nothing gets broadcasted over the eht0 interface.
And the loopback interface is way more faster than the 10/100/1000 mbit your eth0 is connected to now.
My Raspberry Pi and also Pi-hole are up an running again.
I did a restore of the SD Card.
I didn't even think about the loopback. Yes, I made the entry for "static domain_name_servers" manually by myself.
How can I change from eh0 to lo and then set the localhost IP?
Bad idea. After the adjustment to 127.0.0.1 nothing works anymore. I can no longer access the Raspi / pi-hole.
I have to organize a monitor incl. cable, etc. so that I can get to the Raspi...
Changing /etc/resolv.conf to 127.0.0.1 will not cause it to become unresponsive. At worst it would just not be able to resolve names to IP addresses. Communication via IP would be unaffected.
Oops I always wrote from the file /etc/dhcpcd.conf. Here about the entry "static domain_name_servers".
Do I have do change to 127.0.0.1 in /etc/resolv.conf?
Thank you @jfb for the tip on Pi Finder. I will try it out.
No. dhcpcd does that for you by calling bellow one:
pi@noads:~ $ man resolvconf
[..]
DESCRIPTION
The resolvconf package comprises a simple database for run-time
nameserver information and a simple framework for notifying
applications of changes in that information. Resolvconf thus
sets itself up as the intermediary between programs that supply
nameserver information and applications that use that informa‐
tion.
Information is added to or removed from the database using the
resolvconf program. See the OPTIONS section below for a discus‐
sion of the available options.
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
Hm, but now again. Same problem as in the beginning. No Internet connection.
I also cannot update a debug log via pihole -d