[7.20.0] Pi-hole and interface setting

Hi all,
I found an issue when updating a router where I run containers to v7.20.0 and the pi-hole.
I guess it is due to this part of the update:
*** container - allow to use multiple veths in a container, change the in container interface name to same as in RouterOS**

Then when I restarted the container, pi-hole complained about dnsmasq not finding eth0 anymore.
When entering in the shell for pi-hole there was a veth1 interface, indeed, based on the same as defined in Ros.
At this point I had changed locally inside the container in the pihole.toml file to use veth1 instead of eth0.
However I tried to set in the ENV list for pihole the variable "INTERFACE=veth1", but it does not seem to have worked for me.
Is there a way to pass such interface info to the container via ENV settings, or changing the pihole.toml is the only way for now ?
Thanks

DNSMASQ_LISTENING=interfacename

Thanks for the hint, but when I include this, then pihole still looks for eth0, so the config is not updated with veth1.

2025-10-01 07:15:25.054 CEST [48M] WARNING: dnsmasq: interface eth0 does not currently exist

I'm not sure whether the new pihole 6.xx has changed these variables.

Yes, they did change them; my bad:

https://docs.pi-hole.net/docker/upgrading/v5-v6/

2 Likes

Thanks, that's what I was looking for, I will bookmark that page.
Now everything works fine with that vars.

As quickfix it can also be done in GUI

Yes you’re right, thanks for the hint.