Unfortunately the solution with 127.0.0.1 only works if I ping or nslookup the router:
pi@raspberrypi4:~ $ nslookup fritz.box
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: fritz.box
Address: 192.168.178.1
Name: fritz.box
Address: fd00::9a9b:cbff:feb6:5d61
Name: fritz.box
Address: 2a04:xxxx:xxxx:xxxx:xxxx:cbff:feb6:5d61
Whenever I ping/nslookup anything else, I get this:
pi@raspberrypi4:~ $ nslookup Philips-Hue-Br2
Server: 127.0.0.1
Address: 127.0.0.1#53
Non-authoritative answer:
*** Can't find Philips-Hue-Br2: No answer
This is how it is in /etc/dhcpd.conf:
interface eth0
static ip_address=192.168.178.5/24
static routers=192.168.178.1
static domain_name_servers=127.0.0.1
If correctly installed,
127.0.0.1
should also work:
Yep... if... but since I did a fresh install, just Raspberry Pi OS and Pi-hole I do not understand why it just doesn't work out of the box.