openHABianPi name server configuration wrong after every restart

Hi,

for a while I was running PiHole and openHABianPi on the same Raspi 3.

Then I decided to uninstall PiHole and since then have the problem that the name server configuration defaults to 127.0.0.1 instead of 192.168.1.1 every time I reboot the device. The Raspi then can’t connect to the internet and many Things don’t work.

My current workaround is to edit the /etc/resolv.conf file manually after each restart.

Does anyone know how to permanently change the name server configuration?

Thanks,
Dirk

Etc/dhcpcd is the file I believe. Have a look at it.

2 Likes