Lan.list is being ignored

I have installed DietPi (latest Buster release) and on top of that Pi-Hole.
Everything seems to be working except for lan.list.
I have created a lan.list file in /etc/pihole and restarted the Pi multiple times.
But everything in the file is being ignored.

On other machines (Ubuntu VM) it works without problems.
What could be the problem?

The list files that Pi-hole uses are defined in below config file:

pi@noads:~ $ cat /etc/dnsmasq.d/01-pihole.conf
[..]
addn-hosts=/etc/pihole/gravity.list
addn-hosts=/etc/pihole/black.list
addn-hosts=/etc/pihole/local.list
[..]

You could create your own new config file like for example:

/etc/dnsmasq.d/99-my-settings.conf

Containing:

addn-hosts=/etc/pihole/lan.list

And restart to apply:

sudo service pihole-FTL restart

1 Like

Didnt know that.

EDIT: Is this lan.list a new feature as I can find none ?

pi@noads:~ $ sudo find /etc -name *.list
/etc/pihole/black.list
/etc/pihole/regex.list
/etc/pihole/adlists.list
/etc/pihole/local.list
/etc/pihole/gravity.list
/etc/apt/sources.list
/etc/apt/sources.list.d/raspi.list

It's supposed to be local.list (generated file), but it seems I may have messed that up in the linked topic. A manually created lan.list is ok, but it can be easily confused with local.list.

Thanks all!

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.