Pi-Hole edits /etc/hosts?

Nothing broken, but weird…

admin@arkadi:~$ cat /etc/hosts
127.0.0.1       localhost
127.0.1.1       MiWiFi-R3-srv.yunohost.org      MiWiFi-R3-srv

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
192.168.31.4    arkadi.one #Added by pihole#
192.168.31.4    blog.arkadi.one #Added by pihole#
192.168.31.4    searx.arkadi.one #Added by pihole#

I’m wondering why Pihole is editing Hosts file. Also, that 192.168.31.4 IP is invalid. I checked in all settings of Pihole and I’m not sure where it’s still getting that information.

Anybody have any insight into this?

It’s doing it here : https://github.com/YunoHost-Apps/pihole_ynh/blob/master/scripts/install#L274

But don’t know why it has to …

1 Like

Thanks. So strange.

I guess that’s why it still has that IP. That was the first IP I had for this box when I first installed Yunohost ages ago.